From 98dddcf12b6d65f72cb59b9f6d6ccf0f327cd66b Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 9 Nov 2021 14:03:38 +0300 Subject: Update to v3.7.2 --- PKGBUILD | 55 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 27 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index f1023ae..1ba8b5f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -9,18 +9,17 @@ # Contributor: Renan Birck pkgname=logisim-evolution -pkgver=3.7.1 +pkgver=3.7.2 pkgrel=1 pkgdesc='An educational tool for designing and simulating digital logic circuits (build from source)' -provides=('logisim-evolution') -conflicts=('logisim-evolution-git' 'logisim-evolution-bin') +conflicts=("${pkgname}-git" "${pkgname}-bin") arch=('any') url="https://github.com/reds-heig/logisim-evolution" license=('GPL3') depends=('java-runtime>=16' 'hicolor-icon-theme') makedepends=('java-environment>=16') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/reds-heig/logisim-evolution/archive/v${pkgver}.tar.gz" +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" "${pkgname}.sh") sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') @@ -28,33 +27,35 @@ sha256sums=('c073c8113159e8127cee818fad32d5fbe943b1072459f5a914fd99906f19f179' install=$pkgname.install build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./gradlew shadowJar + cd "${srcdir}/${pkgname}-${pkgver}" + ./gradlew shadowJar } prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml" + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i 's/https/http/' "support/Flatpak/com.github.reds.LogisimEvolution.xml" } package() { - cd "${srcdir}/${pkgname}-${pkgver}" - install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \ - "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" - install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \ - "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" - install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \ - "${pkgdir}/usr/share/applications/${pkgname}.desktop" - - for SIZE in 16 32 48 128 256; do - install -Dm644 \ - "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ - "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" - done - - install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" - - sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \ - -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \ - -i "${pkgdir}/usr/share/applications/${pkgname}.desktop" + cd "${srcdir}/${pkgname}-${pkgver}" + install -Dm644 "build/libs/logisim-evolution-${pkgver}-all.jar" \ + "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar" + install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.xml" \ + "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" + install -Dm644 "support/Flatpak/com.github.reds.LogisimEvolution.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + + for SIZE in 16 32 48 128 256; do + install -Dm644 \ + "src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ + "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}.png" + done + + install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" + + sed -e 's|Exec=.*|Exec=/usr/bin/logisim-evolution|' \ + -e 's|com.github.reds.LogisimEvolution|logisim-evolution|' \ + -i "${pkgdir}/usr/share/applications/${pkgname}.desktop" } +sha256sums=('523faf241cb1ec149c9808f043cb9d3ec5725a9cc6f7631edcfd1acf5c075d68' + 'd5975cc0025905ab8a8a451ce4362ba876bed88008d3a5b2c0a7f664a85da1ba') -- cgit v1.2.3-70-g09d2