diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..a7aaa58 --- /dev/null +++ b/PKGBUILD | |||
@@ -0,0 +1,46 @@ | |||
1 | # Maintainer: Simon Doppler <dopsi[at]dopsi[dot]ch> | ||
2 | # Contributor: Agustin Borgna <hello[at]aborgna.com.ar> | ||
3 | # Contributor: Marcel Korpel <marcel[dot]korpel[at]gmail> | ||
4 | # Contributor: Renan Birck <renan.ee.ufsm at gmail.com> | ||
5 | |||
6 | pkgname=logisim-evolution | ||
7 | pkgver=2.14.2 | ||
8 | pkgrel=1 | ||
9 | pkgdesc='An educational tool for designing and simulating digital logic circuits' | ||
10 | arch=('any') | ||
11 | url="https://github.com/reds-heig/logisim-evolution" | ||
12 | license=('GPL3') | ||
13 | depends=('java-runtime=8' 'bash' 'hicolor-icon-theme') | ||
14 | makedepends=('java-environment-openjdk=8' 'apache-ant') | ||
15 | |||
16 | source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" | ||
17 | 'logisim-evolution.desktop' | ||
18 | 'logisim-evolution.sh' | ||
19 | 'logisim-evolution.xml') | ||
20 | sha256sums=('9c58ce45822c3c0e85a723de2c22c0d0329b82c1b367e06a9ae880f0b1bda202' | ||
21 | '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' | ||
22 | '35b6b4da515f1c5619d35bbedc1469e5ec5b823bf486efdfbb5b705b65e10656' | ||
23 | 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') | ||
24 | |||
25 | build() { | ||
26 | cd "$srcdir/${pkgname}-${pkgver}" | ||
27 | |||
28 | ant jar | ||
29 | } | ||
30 | |||
31 | package() { | ||
32 | cd "$srcdir" | ||
33 | |||
34 | install -Dm644 ${pkgname}-${pkgver}/logisim-evolution.jar \ | ||
35 | "${pkgdir}/usr/share/java/logisim-evolution/logisim-evolution.jar" | ||
36 | install -Dm644 logisim-evolution.xml \ | ||
37 | "${pkgdir}/usr/share/mime/packages/logisim-evolution.xml" | ||
38 | install -Dm644 logisim-evolution.desktop \ | ||
39 | "${pkgdir}/usr/share/applications/logisim-evolution.desktop" | ||
40 | for SIZE in 16 20 24 48 64 128; do | ||
41 | install -Dm644 ${pkgname}-${pkgver}/resources/logisim/img/logisim-icon-${SIZE}.png \ | ||
42 | "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png" | ||
43 | done | ||
44 | install -Dm755 logisim-evolution.sh "${pkgdir}/usr/bin/logisim-evolution" | ||
45 | } | ||
46 | |||