summaryrefslogtreecommitdiffstats
path: root/logisim-evolution/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2021-11-16 15:48:01 +0300
committerYigit Sever2021-11-16 15:48:01 +0300
commit1eff5897eb494bdb0837dd2eb8081f7c515b213e (patch)
tree7c84d2b2225a966ada63e845bb13d86a6e712140 /logisim-evolution/PKGBUILD
parent54b6095321e7a203b692edb6b74c75a0423236eb (diff)
downloadpackages-1eff5897eb494bdb0837dd2eb8081f7c515b213e.tar.gz
packages-1eff5897eb494bdb0837dd2eb8081f7c515b213e.tar.bz2
packages-1eff5897eb494bdb0837dd2eb8081f7c515b213e.zip
logisim-evolution: 3.7.2
Diffstat (limited to 'logisim-evolution/PKGBUILD')
-rw-r--r--logisim-evolution/PKGBUILD55
1 files changed, 27 insertions, 28 deletions
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}