From da5a96a70cde7dd09218e151ce670653731bd2be Mon Sep 17 00:00:00 2001 From: Martin Thierer Date: Fri, 27 Dec 2019 10:30:41 +0100 Subject: 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. --- .SRCINFO | 2 +- PKGBUILD | 12 +++++++----- 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 @@ pkgbase = logisim-evolution pkgdesc = An educational tool for designing and simulating digital logic circuits pkgver = 2.15.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/reds-heig/logisim-evolution arch = any license = GPL3 diff --git a/PKGBUILD b/PKGBUILD index b73b291..7fed87d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ pkgname=logisim-evolution pkgver=2.15.0 -pkgrel=1 +pkgrel=2 pkgdesc='An educational tool for designing and simulating digital logic circuits' arch=('any') url="https://github.com/reds-heig/logisim-evolution" @@ -37,11 +37,13 @@ package() { install -Dm644 "${pkgname}.xml" \ "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" install -Dm644 "${pkgname}.desktop" \ - "${pkgdir}/usr/share/applications/${pkgname}logisim-evolution.desktop" - for SIZE in 16 20 24 48 64 128; do - install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon-64.png" \ - "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/${pkgname}logisim-evolution.png" + "${pkgdir}/usr/share/applications/logisim-evolution.desktop" + for SIZE in 16 24 48 64 128; do + install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon-${SIZE}.png" \ + "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/logisim-evolution.png" done + install -Dm644 "${pkgname}-${pkgver}/src/main/resources/resources/logisim/img/logisim-icon.svg" \ + "${pkgdir}/usr/share/icons/hicolor/scalable/apps/logisim-evolution.svg" install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" } -- cgit v1.2.3-70-g09d2