summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logisim-evolution/.SRCINFO7
-rw-r--r--logisim-evolution/PKGBUILD55
2 files changed, 30 insertions, 32 deletions
diff --git a/logisim-evolution/.SRCINFO b/logisim-evolution/.SRCINFO
index cf74612..75240ce 100644
--- a/logisim-evolution/.SRCINFO
+++ b/logisim-evolution/.SRCINFO
@@ -1,6 +1,6 @@
1pkgbase = logisim-evolution 1pkgbase = logisim-evolution
2 pkgdesc = An educational tool for designing and simulating digital logic circuits (build from source) 2 pkgdesc = An educational tool for designing and simulating digital logic circuits (build from source)
3 pkgver = 3.7.1 3 pkgver = 3.7.2
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 install = logisim-evolution.install 6 install = logisim-evolution.install
@@ -9,12 +9,11 @@ pkgbase = logisim-evolution
9 makedepends = java-environment>=16 9 makedepends = java-environment>=16
10 depends = java-runtime>=16 10 depends = java-runtime>=16
11 depends = hicolor-icon-theme 11 depends = hicolor-icon-theme
12 provides = logisim-evolution
13 conflicts = logisim-evolution-git 12 conflicts = logisim-evolution-git
14 conflicts = logisim-evolution-bin 13 conflicts = logisim-evolution-bin
15 source = logisim-evolution-3.7.1.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v3.7.1.tar.gz 14 source = logisim-evolution-3.7.2.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v3.7.2.tar.gz
16 source = logisim-evolution.sh 15 source = logisim-evolution.sh
17 sha256sums = c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179 16 sha256sums = 523faf241cb1ec149c9808f043cb9d3ec5725a9cc6f7631edcfd1acf5c075d68
18 sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba 17 sha256sums = d5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba
19 18
20pkgname = logisim-evolution 19pkgname = logisim-evolution
diff --git a/logisim-evolution/PKGBUILD b/logisim-evolution/PKGBUILD
index f1023ae..0212316 100644
--- a/logisim-evolution/PKGBUILD
+++ b/logisim-evolution/PKGBUILD
@@ -9,52 +9,51 @@
9# Contributor: Renan Birck <renan.ee.ufsm at gmail.com> 9# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
10 10
11pkgname=logisim-evolution 11pkgname=logisim-evolution
12pkgver=3.7.1 12pkgver=3.7.2
13pkgrel=1 13pkgrel=1
14pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' 14pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)'
15provides=('logisim-evolution') 15conflicts=("${pkgname}-git" "${pkgname}-bin")
16conflicts=('logisim-evolution-git' 'logisim-evolution-bin')
17arch=('any') 16arch=('any')
18url="https://github.com/reds-heig/logisim-evolution" 17url="https://github.com/reds-heig/logisim-evolution"
19license=('GPL3') 18license=('GPL3')
20depends=('java-runtime>=16' 'hicolor-icon-theme') 19depends=('java-runtime>=16' 'hicolor-icon-theme')
21makedepends=('java-environment>=16') 20makedepends=('java-environment>=16')
22 21
23source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" 22source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
24 "${pkgname}.sh") 23 "${pkgname}.sh")
25sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' 24sha256sums=('523faf241cb1ec149c9808f043cb9d3ec5725a9cc6f7631edcfd1acf5c075d68'
26 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') 25 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba')
27 26
28install=$pkgname.install 27install=$pkgname.install
29 28
30build() { 29build() {
31 cd "${srcdir}/${pkgname}-${pkgver}" 30 cd "${srcdir}/${pkgname}-${pkgver}"
32 ./gradlew shadowJar 31 ./gradlew shadowJar
33} 32}
34 33
35prepare() { 34prepare() {
36 cd "${srcdir}/${pkgname}-${pkgver}" 35 cd "${srcdir}/${pkgname}-${pkgver}"
37 sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml" 36 sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml"
38} 37}
39 38
40package() { 39package() {
41 cd "${srcdir}/${pkgname}-${pkgver}" 40 cd "${srcdir}/${pkgname}-${pkgver}"
42 install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \ 41 install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \
43 "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" 42 "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
44 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \ 43 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \
45 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" 44 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
46 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \ 45 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \
47 "${pkgdir}/usr/share/applications/${pkgname}.desktop" 46 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
48 47
49 for SIZE in 16 32 48 128 256; do 48 for SIZE in 16 32 48 128 256; do
50 install -Dm644 \ 49 install -Dm644 \
51 "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ 50 "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \
52 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" 51 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png"
53 done 52 done
54 53
55 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" 54 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
56 55
57 sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \ 56 sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \
58 -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \ 57 -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \
59 -i "${pkgdir}/usr/share/applications/${pkgname}.desktop" 58 -i "${pkgdir}/usr/share/applications/${pkgname}.desktop"
60} 59}