aboutsummaryrefslogtreecommitdiff
path: root/games/sdlpop/sdlpop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/sdlpop/sdlpop.SlackBuild')
-rw-r--r--games/sdlpop/sdlpop.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/games/sdlpop/sdlpop.SlackBuild b/games/sdlpop/sdlpop.SlackBuild
index 8a0d3ca8d9f7..9f93dd430118 100644
--- a/games/sdlpop/sdlpop.SlackBuild
+++ b/games/sdlpop/sdlpop.SlackBuild
@@ -6,6 +6,9 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211025 bkw:
+# - updated for v1.22.
+# - new icon, new-style icons.
# 20200927 bkw: updated for v1.21.
# 20191127 bkw: updated for v1.20.
# 20180611 bkw: updated for v1.20.
@@ -20,7 +23,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=sdlpop
-VERSION=${VERSION:-1.21}
+VERSION=${VERSION:-1.22}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -33,9 +36,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -90,10 +90,17 @@ gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
# icon downloaded from:
-# http://www.veryicon.com/icons/game/mega-games-pack-26/prince-persia-2008-2.html
+# https://www.veryicon.com/icons/game/mega-games-pack-26/prince-persia-2008-1.html
# 1.17 now has an icon.png, but it's 32x32 and not transparent, so I'll keep
# using the one I used for 1.16.
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+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
+done
+
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# .desktop written for this build
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop