diff options
author | Martin Thierer | 2019-12-27 10:30:41 +0100 |
---|---|---|
committer | Martin Thierer | 2020-01-18 14:27:02 +0100 |
commit | da5a96a70cde7dd09218e151ce670653731bd2be (patch) | |
tree | ff7e9db002652f5a9d64c0cdd8678bb0a693c82b /PKGBUILD | |
parent | 2d2fc45a730804a903c632dec493af6fbba3e54f (diff) | |
download | packages-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.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | pkgname=logisim-evolution | 7 | pkgname=logisim-evolution |
8 | pkgver=2.15.0 | 8 | pkgver=2.15.0 |
9 | pkgrel=1 | 9 | pkgrel=2 |
10 | pkgdesc='An educational tool for designing and simulating digital logic circuits' | 10 | pkgdesc='An educational tool for designing and simulating digital logic circuits' |
11 | arch=('any') | 11 | arch=('any') |
12 | url="https://github.com/reds-heig/logisim-evolution" | 12 | url="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 | ||