diff options
author | Yigit Sever | 2021-11-09 14:03:38 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-09 14:03:38 +0300 |
commit | 98dddcf12b6d65f72cb59b9f6d6ccf0f327cd66b (patch) | |
tree | a0e7952a7f0450aedbf74eebb70e32a7b29b0718 /PKGBUILD | |
parent | 4bdef0fbefd29c523e099de19fba31fa39ae4759 (diff) | |
download | packages-98dddcf12b6d65f72cb59b9f6d6ccf0f327cd66b.tar.gz packages-98dddcf12b6d65f72cb59b9f6d6ccf0f327cd66b.tar.bz2 packages-98dddcf12b6d65f72cb59b9f6d6ccf0f327cd66b.zip |
Update to v3.7.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 28 insertions, 27 deletions
@@ -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 | ||
11 | pkgname=logisim-evolution | 11 | pkgname=logisim-evolution |
12 | pkgver=3.7.1 | 12 | pkgver=3.7.2 |
13 | pkgrel=1 | 13 | pkgrel=1 |
14 | pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' | 14 | pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' |
15 | provides=('logisim-evolution') | 15 | conflicts=("${pkgname}-git" "${pkgname}-bin") |
16 | conflicts=('logisim-evolution-git' 'logisim-evolution-bin') | ||
17 | arch=('any') | 16 | arch=('any') |
18 | url="https://github.com/reds-heig/logisim-evolution" | 17 | url="https://github.com/reds-heig/logisim-evolution" |
19 | license=('GPL3') | 18 | license=('GPL3') |
20 | depends=('java-runtime>=16' 'hicolor-icon-theme') | 19 | depends=('java-runtime>=16' 'hicolor-icon-theme') |
21 | makedepends=('java-environment>=16') | 20 | makedepends=('java-environment>=16') |
22 | 21 | ||
23 | source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" | 22 | source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" |
24 | "${pkgname}.sh") | 23 | "${pkgname}.sh") |
25 | sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' | 24 | sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' |
26 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') | 25 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') |
@@ -28,33 +27,35 @@ sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' | |||
28 | install=$pkgname.install | 27 | install=$pkgname.install |
29 | 28 | ||
30 | build() { | 29 | build() { |
31 | cd "${srcdir}/${pkgname}-${pkgver}" | 30 | cd "${srcdir}/${pkgname}-${pkgver}" |
32 | ./gradlew shadowJar | 31 | ./gradlew shadowJar |
33 | } | 32 | } |
34 | 33 | ||
35 | prepare() { | 34 | prepare() { |
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 | ||
40 | package() { | 39 | package() { |
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 | } |
60 | sha256sums=('523faf241cb1ec149c9808f043cb9d3ec5725a9cc6f7631edcfd1acf5c075d68' | ||
61 | 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') | ||