summaryrefslogtreecommitdiffstats
path: root/games/sms_sdl/sms_sdl.SlackBuild
diff options
context:
space:
mode:
author B. Watson2021-10-25 21:34:41 +0200
committer Willy Sudiarto Raharjo2021-10-29 12:07:23 +0200
commit6cf20702d0ac8cbcde1836237a4885b57d3a802e (patch)
treecd74dc7491773f5751237d54178803a877e6e9e5 /games/sms_sdl/sms_sdl.SlackBuild
parent9f7c8b6c0dbbbb2d66690ac27da598e0aad1fc27 (diff)
downloadslackbuilds-6cf20702d0ac8cbcde1836237a4885b57d3a802e.tar.gz
games/sms_sdl: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/sms_sdl/sms_sdl.SlackBuild')
-rw-r--r--games/sms_sdl/sms_sdl.SlackBuild24
1 files changed, 19 insertions, 5 deletions
diff --git a/games/sms_sdl/sms_sdl.SlackBuild b/games/sms_sdl/sms_sdl.SlackBuild
index ef3f3397f3..e88784700e 100644
--- a/games/sms_sdl/sms_sdl.SlackBuild
+++ b/games/sms_sdl/sms_sdl.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211024 bkw: BUILD=4
+# - made a new icon, hopefully better looking.
+# - new-style icons.
+# - wrapper script: create default config if no config found.
+# - expand man page a bit.
+
# 20200104 bkw:
# - Whoops! The sms_sdl.png icon was actually a .gif. Fix & bump BUILD.
@@ -36,9 +42,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
@@ -118,10 +121,21 @@ mkdir -p $PKG/usr/man/man6
sed "s/\<VERSION\>/$VERSION/g" < $CWD/$PRGNAM.6 | \
gzip -9c > $PKG/usr/man/man6/$PRGNAM.6.gz
-# icon by finite (see REAME), desktop written for this build.
+# .desktop written for this build.
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+
+# 20211024 bkw: created a new icon, the old one didn't scale down
+# well, plus it was too dark. I'm still not a graphic designer, feel
+# free to send me a better one.
+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
mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh