summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryjun1232020-08-15 14:04:30 +0800
committeryjun1232020-08-15 14:04:30 +0800
commit97bcc81f08d446150b2a89b50ed544bb89870632 (patch)
treec4c87fc637ad975e1a269d624f1d9d8dcde49dc6
parent8948cfb30363c0d0cb56163036f5b99132b23b79 (diff)
downloadaur-97bcc81f08d446150b2a89b50ed544bb89870632.tar.gz
fixed icons display
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0a39efcebdf..d44a3f4c513 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,11 +19,16 @@ sha256sums=('104aada01fb19dc8a6cfe3913971eb0b78caf6aedf3f56b01015038721c5ba96'
package() {
install -dm755 ${pkgdir}/opt/${_pkgname}
- unzip lceda-linux-x64.zip -d ${pkgdir}/opt/${_pkgname}
+ unzip -q lceda-linux-x64.zip -d ${pkgdir}/opt/${_pkgname}
# icon
- install -dm755 ${pkgdir}/usr/share/icons/
- mv ${pkgdir}/opt/${_pkgname}/icon ${pkgdir}/usr/share/icons/hicolor
+ install -dm755 ${pkgdir}/usr/share/icons/hicolor/
+ for icon in 16 32 48 64 128 256;
+ do
+ install -Dm644 ${pkgdir}/opt/${_pkgname}/icon/${icon}x${icon}/${_pkgname}.png \
+ ${pkgdir}/usr/share/icons/hicolor/${icon}x${icon}/apps/${_pkgname}.png
+ done
+ rm -rf ${pkgdir}/opt/${_pkgname}/icon
# desktop entry
install -Dm644 ${pkgdir}/opt/${_pkgname}/LCEDA.dkt ${pkgdir}/usr/share/applications/${_pkgname}.desktop