summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormaniacata2020-04-18 19:13:34 +0800
committermaniacata2020-04-18 19:13:34 +0800
commitff0d34302d47101685ac5d373c2708753265881a (patch)
treec3eb945ed924b7197d4d395e0ee910d149c69ea5 /PKGBUILD
parent9ed3bea0d8dc2455e6198cdc9316f80f513ac6b8 (diff)
downloadpackages-ff0d34302d47101685ac5d373c2708753265881a.tar.gz
packages-ff0d34302d47101685ac5d373c2708753265881a.tar.bz2
packages-ff0d34302d47101685ac5d373c2708753265881a.zip
update to 3.3.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD51
1 files changed, 23 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0a3ebe8..39d12f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
1# Maintainer: Martin Thierer <thierer@web.de> 1# Maintainer: maniacata <maniaciachao at gmail dot com>
2# Contributor: Martin Thierer <thierer@web.de>
2# Contributor: Amy Wilson <awils_1[at]xsmail[dot]com> 3# Contributor: Amy Wilson <awils_1[at]xsmail[dot]com>
3# Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch> 4# Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch>
4# Contributor: Agustin Borgna <hello[at]aborgna.com.ar> 5# Contributor: Agustin Borgna <hello[at]aborgna.com.ar>
@@ -6,45 +7,39 @@
6# Contributor: Renan Birck <renan.ee.ufsm at gmail.com> 7# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
7 8
8pkgname=logisim-evolution 9pkgname=logisim-evolution
9pkgver=2.15.0 10pkgver=3.3.4
10pkgrel=2 11pkgrel=1
11pkgdesc='An educational tool for designing and simulating digital logic circuits' 12pkgdesc='An educational tool for designing and simulating digital logic circuits'
12arch=('any') 13arch=('any')
13url="https://github.com/reds-heig/logisim-evolution" 14url="https://github.com/reds-heig/logisim-evolution"
14license=('GPL3') 15license=('GPL3')
15depends=('java-runtime=8' 'bash' 'hicolor-icon-theme') 16depends=('java-runtime>=10' 'bash' 'hicolor-icon-theme')
16makedepends=('java-environment-openjdk=8') 17
17 18source=("${pkgname}-${pkgver}.jar::https://github.com/reds-heig/logisim-evolution/releases/download/v${pkgver}/logisim-evolution-${pkgver}-all.jar"
18source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" 19 "${pkgname}.desktop"
19 'logisim-evolution.desktop' 20 "${pkgname}.sh"
20 'logisim-evolution.sh' 21 "${pkgname}.xml")
21 'logisim-evolution.xml') 22sha256sums=('b04e666ed0b74126dfc8c2ce6ae0d425ad5bb39c2d77ef214158b6dfc67f8b0d'
22sha256sums=('54c55415fce36801ed668c3bed64903444b0f6f3326091d63e84c253523fc8d8'
23 '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' 23 '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b'
24 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba' 24 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba'
25 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') 25 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec')
26 26
27build() {
28 cd "$srcdir/${pkgname}-${pkgver}"
29
30 ./gradlew --no-daemon shadowJar
31}
32
33package() { 27package() {
34 cd "$srcdir" 28 cd "$srcdir"
35 29
36 install -Dm644 "${pkgname}-${pkgver}/build/libs/${pkgname}-${pkgver}-all.jar" \ 30 jar xf ${pkgname}-${pkgver}.jar "resources/logisim/img/"
37 "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" 31
38 install -Dm644 "${pkgname}.xml" \ 32 install -Dm644 ${pkgname}-${pkgver}.jar "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
39 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" 33 install -Dm644 ${pkgname}.xml "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
40 install -Dm644 "${pkgname}.desktop" \ 34 install -Dm644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
41 "${pkgdir}/usr/share/applications/logisim-evolution.desktop" 35
42 for SIZE in 16 24 48 64 128; do 36 for SIZE in 16 20 24 48 64 128; do
43 install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ 37 install -Dm644 "resources/logisim/img/logisim-icon-${SIZE}.png" \
44 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png" 38 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png"
45 done 39 done
46 install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon.svg" \ 40 install -Dm644 "resources/logisim/img/logisim-icon.svg" \
47 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/logisim-evolution.svg" 41 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
42
48 install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" 43 install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
49} 44}
50 45