From cf6e53735983c49fd3a2fb965883167009e4624a Mon Sep 17 00:00:00 2001 From: Simon Doppler Date: Mon, 23 Oct 2017 10:38:06 +0200 Subject: Initial commit --- PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a7aaa58 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Simon Doppler +# Contributor: Agustin Borgna +# Contributor: Marcel Korpel +# Contributor: Renan Birck + +pkgname=logisim-evolution +pkgver=2.14.2 +pkgrel=1 +pkgdesc='An educational tool for designing and simulating digital logic circuits' +arch=('any') +url="https://github.com/reds-heig/logisim-evolution" +license=('GPL3') +depends=('java-runtime=8' 'bash' 'hicolor-icon-theme') +makedepends=('java-environment-openjdk=8' 'apache-ant') + +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" + 'logisim-evolution.desktop' + 'logisim-evolution.sh' + 'logisim-evolution.xml') +sha256sums=('9c58ce45822c3c0e85a723de2c22c0d0329b82c1b367e06a9ae880f0b1bda202' + '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' + '35b6b4da515f1c5619d35bbedc1469e5ec5b823bf486efdfbb5b705b65e10656' + 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + + ant jar +} + +package() { + cd "$srcdir" + + install -Dm644 ${pkgname}-${pkgver}/logisim-evolution.jar \ + "${pkgdir}/usr/share/java/logisim-evolution/logisim-evolution.jar" + install -Dm644 logisim-evolution.xml \ + "${pkgdir}/usr/share/mime/packages/logisim-evolution.xml" + install -Dm644 logisim-evolution.desktop \ + "${pkgdir}/usr/share/applications/logisim-evolution.desktop" + for SIZE in 16 20 24 48 64 128; do + install -Dm644 ${pkgname}-${pkgver}/resources/logisim/img/logisim-icon-${SIZE}.png \ + "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png" + done + install -Dm755 logisim-evolution.sh "${pkgdir}/usr/bin/logisim-evolution" +} + -- cgit v1.2.3-70-g09d2