aboutsummaryrefslogtreecommitdiff
path: root/games/nevernoid/nevernoid.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/nevernoid/nevernoid.SlackBuild')
-rw-r--r--games/nevernoid/nevernoid.SlackBuild21
1 files changed, 15 insertions, 6 deletions
diff --git a/games/nevernoid/nevernoid.SlackBuild b/games/nevernoid/nevernoid.SlackBuild
index f10ee9fd3cb91..556e5a93595d0 100644
--- a/games/nevernoid/nevernoid.SlackBuild
+++ b/games/nevernoid/nevernoid.SlackBuild
@@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211025 bkw: BUILD=3, new-style icons.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nevernoid
VERSION=${VERSION:-1.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +24,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
@@ -54,7 +53,10 @@ tar xvf $CWD/$ARCHIVE
cd $PRGNAM
# Upstream fixed a bug in one of the maps, as a separate download.
-unzip $CWD/"watch the birdy.zip"
+# Some dumb browsers might save the file with %20 where the spaces belong.
+BIRDY="$CWD/watch the birdy.zip"
+[ ! -e "$BIRDY" ] && BIRDY="$CWD/watch%20the%20birdy.zip"
+unzip "$BIRDY"
mv "watch the birdy.map" maps/
chown -R root:root .
@@ -83,8 +85,15 @@ cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
# in the gimp. Took about 10 minutes plus lots of cussing & head-scratching.
# If anyone who actually knows anything at all about graphic design would
# like to do a better icon, email me.
+for px in 16 32 48 64; 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
+
mkdir -p $PKG/usr/share/pixmaps
-cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
+ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc