Skip to content

Instantly share code, notes, and snippets.

@alekratz
Created March 16, 2015 16:59
Show Gist options
  • Save alekratz/ac5c1c1ad2b9b7893a9b to your computer and use it in GitHub Desktop.
Save alekratz/ac5c1c1ad2b9b7893a9b to your computer and use it in GitHub Desktop.
logisim-evolution 2.13.8 PKGBUILD
# Maintainer: Marcel Korpel <marcel[dot]korpel[at]gmail>
# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
pkgname=logisim-evolution
_truepkgname=logisim
pkgver=2.13.8
pkgrel=1
provides=('logisim')
conflicts=('logisim')
pkgdesc='An educational tool for designing and simulating digital logic circuits'
arch=('any')
url="http://sourceforge.net/projects/logisimevolution/"
license=('GPL2')
depends=('java-runtime' 'gtk-update-icon-cache' 'desktop-file-utils' 'shared-mime-info')
install=logisim.install
source=(https://reds.heig-vd.ch/share/logisim-evolution/logisim-evolution-2.13.8.jar
${_truepkgname}.xml
${_truepkgname}.desktop
${_truepkgname}.sh)
sha256sums=('f1c8d8c53650e2313138ebbb99dfd0d0479f77ef60d9d76ac73be05305f0c0e3'
'9dd50eb99edeff5f74247ae9b050d56c1366818ea80fbdcc6c5e24bfabfec5c0'
'4d5ae9f9d5f5789469f3580a81ee568ca426f324df3ba37d7e4c8d6b20dc638c'
'56eaac407f6ae64289ab228269edb8b1a2bbe647e2baf5dfab7f481c9db8e680')
package() {
cd "$srcdir"
install -Dm644 ${pkgname}-${pkgver}.jar "${pkgdir}/usr/share/java/${_truepkgname}/${_truepkgname}.jar"
install -Dm644 ${_truepkgname}.xml "${pkgdir}/usr/share/mime/packages/${_truepkgname}.xml"
install -Dm644 ${_truepkgname}.desktop "${pkgdir}/usr/share/applications/${_truepkgname}.desktop"
for SIZE in 16 20 24 48 64 128; do
install -Dm644 resources/${_truepkgname}/img/${_truepkgname}-icon-${SIZE}.png \
"${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${_truepkgname}.png"
done
install -Dm755 ${_truepkgname}.sh "${pkgdir}/usr/bin/${_truepkgname}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment