summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD55
1 files changed, 28 insertions, 27 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f1023ae..1ba8b5f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,18 +9,17 @@
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=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179'
26 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') 25 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba')
@@ -28,33 +27,35 @@ sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179'
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}
60sha256sums=('523faf241cb1ec149c9808f043cb9d3ec5725a9cc6f7631edcfd1acf5c075d68'
61 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba')