diff options
author | gileri | 2024-01-01 22:21:12 +0100 |
---|---|---|
committer | gileri | 2024-01-01 22:22:01 +0100 |
commit | 5fd0808c77fc070dd705e341d255ef310342c7d5 (patch) | |
tree | d952936ed29685435af3e3c623c0c5538e414c82 | |
parent | 362079825a2d96a6c8cdce9a61305ee7125a265a (diff) | |
download | aur-5fd0808c77fc070dd705e341d255ef310342c7d5.tar.gz |
Include multiple size icons thanks to the extra repo PKGBUILD
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -62,8 +62,14 @@ package() { RELEASE=1 ZLEVELS=1 USE_XDG_DIR=1 PCH=0 TILES=1 SOUND=1 \ install - # Icon - install -D 'build-data/osx/AppIcon.iconset/icon_128x128.png' "$pkgdir/usr/share/icons/hicolor/128x128/apps/cataclysm-dda.png" + # Icons + pushd build-data/osx/AppIcon.iconset + for i in *.png + do + local _isize="$(echo "$i" | sed -Ee 's/icon_([[:digit:]]+)x\1\.png/\1x\1/')" + install -Dm644 "$i" "$pkgdir/usr/share/icons/hicolor/$_isize/apps/cataclysm-dda.png" + done + popd # Docs install -d "$pkgdir/usr/share/doc/cataclysm-dda" |