diff options
author | maniacata | 2021-01-18 02:08:06 +0800 |
---|---|---|
committer | maniacata | 2021-01-18 02:08:06 +0800 |
commit | f0761677bb83eaeeac26b4e06ea995314f46de19 (patch) | |
tree | 39488de1a753281071f48d785bebce2a6458b5ab /PKGBUILD | |
parent | d99c71022bbff1b3b9ac78ae4d3b62f5397d3246 (diff) | |
download | packages-f0761677bb83eaeeac26b4e06ea995314f46de19.tar.gz packages-f0761677bb83eaeeac26b4e06ea995314f46de19.tar.bz2 packages-f0761677bb83eaeeac26b4e06ea995314f46de19.zip |
refactor: switch to source code version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 50 |
1 files changed, 32 insertions, 18 deletions
@@ -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 | ||
9 | pkgname=logisim-evolution | 10 | pkgname=logisim-evolution |
10 | pkgver=3.3.6 | 11 | pkgver=3.4.1 |
11 | pkgrel=1 | 12 | pkgrel=1 |
12 | pkgdesc='An educational tool for designing and simulating digital logic circuits' | 13 | pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' |
13 | arch=('any') | 14 | arch=('any') |
14 | url="https://github.com/reds-heig/logisim-evolution" | 15 | url="https://github.com/reds-heig/logisim-evolution" |
15 | license=('GPL3') | 16 | license=('GPL3') |
16 | depends=('java-runtime>=10' 'bash' 'hicolor-icon-theme') | 17 | depends=('java-runtime>=9' 'hicolor-icon-theme') |
18 | makedepends=('java-environment>=9') | ||
17 | 19 | ||
18 | source=("${pkgname}-${pkgver}.jar::https://github.com/reds-heig/logisim-evolution/releases/download/v${pkgver}/logisim-evolution-${pkgver}-all.jar" | 20 | source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz") |
19 | "${pkgname}.desktop" | 21 | sha256sums=('bce8ee163e80b56a49a4ec3b5fa10c2b21779146f4c2c44d4bc7560a72566236' |
20 | "${pkgname}.sh" | ||
21 | "${pkgname}.xml") | ||
22 | sha256sums=('97f6c44c30550f42a71850fac8e2a604f82134ae580a4d0bfdd664938c8cf52b' | ||
23 | '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' | 22 | '086851b07012f669743080dc4f059cf7727b19200384070852b34e142533385b' |
24 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba' | 23 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba' |
25 | 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') | 24 | 'f90c3709748af806a33c14e81c8bf91dc06c3a4f58fe00cfe14a8f1842e09dec') |
26 | 25 | ||
27 | package() { | 26 | install=$_pkgname.install |
28 | cd "$srcdir" | 27 | |
28 | build() { | ||
29 | cd "${srcdir}/${pkgname}-${pkgver}" | ||
30 | ./gradlew shadowJar | ||
31 | } | ||
29 | 32 | ||
30 | install -Dm644 ${pkgname}-${pkgver}.jar "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" | 33 | package() { |
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 | ||