summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD50
-rw-r--r--logisim-evolution.install11
3 files changed, 48 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d79f48b..ca2f301 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,18 @@
1pkgbase = logisim-evolution 1pkgbase = logisim-evolution
2 pkgdesc = An educational tool for designing and simulating digital logic circuits 2 pkgdesc = An educational tool for designing and simulating digital logic circuits
3 pkgver = 3.3.6 3 pkgver = 3.4.1
4 pkgrel = 1 4 pkgrel = 1
5 url = https://github.com/reds-heig/logisim-evolution 5 url = https://github.com/reds-heig/logisim-evolution
6 arch = any 6 arch = any
7 license = GPL3 7 license = GPL3
8 depends = java-runtime>=10 8 makedepends = java-environment>=9
9 depends = bash 9 depends = java-runtime>=9
10 depends = hicolor-icon-theme 10 depends = hicolor-icon-theme
11 source = logisim-evolution-3.3.6.jar::https://github.com/reds-heig/logisim-evolution/releases/download/v3.3.6/logisim-evolution-3.3.6-all.jar 11 source = logisim-evolution-3.4.1.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v3.4.1.tar.gz
12 source = logisim-evolution.desktop 12 source = logisim-evolution.desktop
13 source = logisim-evolution.sh 13 source = logisim-evolution.sh
14 source = logisim-evolution.xml 14 source = logisim-evolution.xml
15 sha256sums = 97f6c44c30550f42a71850fac8e2a604f82134ae580a4d0bfdd664938c8cf52b 15 sha256sums = bce8ee163e80b56a49a4ec3b5fa10c2b21779146f4c2c44d4bc7560a72566236
16 sha256sums = 086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b 16 sha256sums = 086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b
17 sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba 17 sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba
18 sha256sums = f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec 18 sha256sums = f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec
diff --git a/PKGBUILD b/PKGBUILD
index d8454c6..a2c30ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
1# Maintainer: maniacata <maniaciachao at gmail dot com> 1# Maintainer: maniacata <maniaciachao at gmail dot com>
2# Contributor: Marcin Wieczorek <marcin@marcin.co>
2# Contributor: Martin Thierer <thierer@web.de> 3# Contributor: Martin Thierer <thierer@web.de>
3# Contributor: Amy Wilson <awils_1[at]xsmail[dot]com> 4# Contributor: Amy Wilson <awils_1[at]xsmail[dot]com>
4# Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch> 5# Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch>
@@ -7,37 +8,50 @@
7# Contributor: Renan Birck <renan.ee.ufsm at gmail.com> 8# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
8 9
9pkgname=logisim-evolution 10pkgname=logisim-evolution
10pkgver=3.3.6 11pkgver=3.4.1
11pkgrel=1 12pkgrel=1
12pkgdesc='An educational tool for designing and simulating digital logic circuits' 13pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)'
13arch=('any') 14arch=('any')
14url="https://github.com/reds-heig/logisim-evolution" 15url="https://github.com/reds-heig/logisim-evolution"
15license=('GPL3') 16license=('GPL3')
16depends=('java-runtime>=10' 'bash' 'hicolor-icon-theme') 17depends=('java-runtime>=9' 'hicolor-icon-theme')
18makedepends=('java-environment>=9')
17 19
18source=("${pkgname}-${pkgver}.jar::https://github.com/reds-heig/logisim-evolution/releases/download/v${pkgver}/logisim-evolution-${pkgver}-all.jar" 20source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz")
19 "${pkgname}.desktop" 21sha256sums=('bce8ee163e80b56a49a4ec3b5fa10c2b21779146f4c2c44d4bc7560a72566236'
20 "${pkgname}.sh"
21 "${pkgname}.xml")
22sha256sums=('97f6c44c30550f42a71850fac8e2a604f82134ae580a4d0bfdd664938c8cf52b'
23 '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' 22 '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b'
24 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba' 23 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba'
25 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') 24 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec')
26 25
27package() { 26install=$_pkgname.install
28 cd "$srcdir" 27
28build() {
29 cd "${srcdir}/${pkgname}-${pkgver}"
30 ./gradlew shadowJar
31}
29 32
30 install -Dm644 ${pkgname}-${pkgver}.jar "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" 33package() {
31 install -Dm644 ${pkgname}.xml "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" 34 cd "${srcdir}/${pkgname}-${pkgver}"
32 install -Dm644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop" 35 install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \
36 "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
37 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \
38 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
39 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \
40 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
33 41
34 for SIZE in 16 20 24 48 64 128; do 42 for SIZE in 16 20 24 48 64 128; do
35 install -Dm644 "resources/logisim/img/logisim-icon-${SIZE}.png" \ 43 install -Dm644 \
36 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" 44 "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \
45 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png"
37 done 46 done
38 install -Dm644 "resources/logisim/img/logisim-icon.svg" \
39 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
40 47
41 install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" 48 install -Dm644 "build/resources/main/resources/logisim/img/logisim-icon.svg" \
49 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
50
51 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
52
53 sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \
54 -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \
55 -i "${pkgdir}/usr/share/applications/${pkgname}.desktop"
42} 56}
43 57
diff --git a/logisim-evolution.install b/logisim-evolution.install
new file mode 100644
index 0000000..9d3ce28
--- /dev/null
+++ b/logisim-evolution.install
@@ -0,0 +1,11 @@
1pre_install() {
2 pre_upgrade
3}
4
5pre_upgrade() {
6 cat << EOF
7 Please notice that this AUR repo is a build-from-source package.
8
9 However, binary version (the previous one) can be found as 'logisim-evolution-bin'.
10EOF
11} \ No newline at end of file