summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Thierer2019-12-27 10:30:41 +0100
committerMartin Thierer2020-01-18 14:27:02 +0100
commitda5a96a70cde7dd09218e151ce670653731bd2be (patch)
treeff7e9db002652f5a9d64c0cdd8678bb0a693c82b
parent2d2fc45a730804a903c632dec493af6fbba3e54f (diff)
downloadpackages-da5a96a70cde7dd09218e151ce670653731bd2be.tar.gz
packages-da5a96a70cde7dd09218e151ce670653731bd2be.tar.bz2
packages-da5a96a70cde7dd09218e151ce670653731bd2be.zip
Fix installation of icons and .desktop file
20x20 size icons don't exist in hicolor-icon-theme, so don't install them. But do install the SVG-Version.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f684938..dd261b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
1pkgbase = logisim-evolution 1pkgbase = logisim-evolution
2 pkgdesc = An educational tool for designing and simulating digital logic circuits 2 pkgdesc = An educational tool for designing and simulating digital logic circuits
3 pkgver = 2.15.0 3 pkgver = 2.15.0
4 pkgrel = 1 4 pkgrel = 2
5 url = https://github.com/reds-heig/logisim-evolution 5 url = https://github.com/reds-heig/logisim-evolution
6 arch = any 6 arch = any
7 license = GPL3 7 license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index b73b291..7fed87d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@
6 6
7pkgname=logisim-evolution 7pkgname=logisim-evolution
8pkgver=2.15.0 8pkgver=2.15.0
9pkgrel=1 9pkgrel=2
10pkgdesc='An educational tool for designing and simulating digital logic circuits' 10pkgdesc='An educational tool for designing and simulating digital logic circuits'
11arch=('any') 11arch=('any')
12url="https://github.com/reds-heig/logisim-evolution" 12url="https://github.com/reds-heig/logisim-evolution"
@@ -37,11 +37,13 @@ package() {
37 install -Dm644 "${pkgname}.xml" \ 37 install -Dm644 "${pkgname}.xml" \
38 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" 38 "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
39 install -Dm644 "${pkgname}.desktop" \ 39 install -Dm644 "${pkgname}.desktop" \
40 "${pkgdir}/usr/share/applications/${pkgname}logisim-evolution.desktop" 40 "${pkgdir}/usr/share/applications/logisim-evolution.desktop"
41 for SIZE in 16 20 24 48 64 128; do 41 for SIZE in 16 24 48 64 128; do
42 install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon-64.png" \ 42 install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \
43 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}logisim-evolution.png" 43 "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png"
44 done 44 done
45 install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon.svg" \
46 "${pkgdir}/usr/share/icons/hicolor/scalable/apps/logisim-evolution.svg"
45 install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" 47 install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
46} 48}
47 49