summaryrefslogtreecommitdiffstats
path: root/logisim-evolution/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'logisim-evolution/PKGBUILD')
-rw-r--r--logisim-evolution/PKGBUILD59
1 files changed, 0 insertions, 59 deletions
diff --git a/logisim-evolution/PKGBUILD b/logisim-evolution/PKGBUILD
deleted file mode 100644
index 63c353f..0000000
--- a/logisim-evolution/PKGBUILD
+++ /dev/null
@@ -1,59 +0,0 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: maniacata <maniaciachao at gmail dot com>
3# Contributor: Marcin Wieczorek <marcin@marcin.co>
4# Contributor: Martin Thierer <thierer@web.de>
5# Contributor: Amy Wilson <awils_1[at]xsmail[dot]com>
6# Contributor: Simon Doppler <dopsi[at]dopsi[dot]ch>
7# Contributor: Agustin Borgna <hello[at]aborgna.com.ar>
8# Contributor: Marcel Korpel <marcel[dot]korpel[at]gmail>
9# Contributor: Renan Birck <renan.ee.ufsm at gmail.com>
10
11pkgname=logisim-evolution
12pkgver=3.8.0
13pkgrel=1
14pkgdesc='An educational tool for designing and simulating digital logic circuits'
15conflicts=("${pkgname}-git" "${pkgname}-bin")
16arch=('any')
17url="https://github.com/reds-heig/logisim-evolution"
18license=('GPL3')
19depends=('java-runtime>=16' 'hicolor-icon-theme')
20makedepends=('java-environment>=16')
21
22source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
23 "${pkgname}.sh")
24sha256sums=('7a49558a490a0df886b3ea488f12e4ea887a2ec8c278872dca39b2bebfaed3ee'
25 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba')
26
27install=$pkgname.install
28
29build() {
30 cd "${srcdir}/${pkgname}-${pkgver}"
31 ./gradlew shadowJar
32}
33
34prepare() {
35 cd "${srcdir}/${pkgname}-${pkgver}"
36 sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml"
37}
38
39package() {
40 cd "${srcdir}/${pkgname}-${pkgver}"
41 install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \
42 "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
43 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \
44 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
45 install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \
46 "${pkgdir}/usr/share/applications/${pkgname}.desktop"
47
48 for SIZE in 16 32 48 128 256; do
49 install -Dm644 \
50 "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \
51 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png"
52 done
53
54 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
55
56 sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \
57 -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \
58 -i "${pkgdir}/usr/share/applications/${pkgname}.desktop"
59}