games/rott: Fix icon sizes.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-07 20:50:31 -05:00 committed by Willy Sudiarto Raharjo
parent 1909fc0a35
commit 7bfb2a65da
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230107 bkw: BUILD=3, fix icon sizes.
# 20211025 bkw: BUILD=2
# - new-style icons.
# - .desktop file starts in windowed mode, not fullscreen.
@ -14,7 +16,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rott
VERSION=${VERSION:-1.1.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -116,7 +118,7 @@ for px in 16 32 48 64 128; do
size=${px}x${px}
dir=$PKG/usr/share/icons/hicolor/$size/apps
mkdir -p $dir
convert -resize $size $CWD/$PRGNAM.png $dir/$PRGNAM.png
convert -resize $size! $CWD/$PRGNAM.png $dir/$PRGNAM.png
done
ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png