summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormaniacata2021-01-18 02:08:06 +0800
committermaniacata2021-01-18 02:08:06 +0800
commitf0761677bb83eaeeac26b4e06ea995314f46de19 (patch)
tree39488de1a753281071f48d785bebce2a6458b5ab /PKGBUILD
parentd99c71022bbff1b3b9ac78ae4d3b62f5397d3246 (diff)
downloadpackages-f0761677bb83eaeeac26b4e06ea995314f46de19.tar.gz
packages-f0761677bb83eaeeac26b4e06ea995314f46de19.tar.bz2
packages-f0761677bb83eaeeac26b4e06ea995314f46de19.zip
refactor: switch to source code version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 32 insertions, 18 deletions
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