summaryrefslogtreecommitdiffstats
path: root/games/mari0/mari0.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/mari0/mari0.SlackBuild')
-rw-r--r--games/mari0/mari0.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/games/mari0/mari0.SlackBuild b/games/mari0/mari0.SlackBuild
index 07ded1afdb..ef1fab57c7 100644
--- a/games/mari0/mari0.SlackBuild
+++ b/games/mari0/mari0.SlackBuild
@@ -2,24 +2,23 @@
# Slackware build script for mari0
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20211021 bkw: BUILD=3, new-style icon
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mari0
VERSION=${VERSION:-1.6}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
# *.love files are just zip files full of lua code, they're cross-platform
ARCH=noarch
-# 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
@@ -51,9 +50,10 @@ cat $PAYLOAD >> $PKG/usr/games/$PRGNAM
chmod 0755 $PKG/usr/games/$PRGNAM
# who distributes icons as gifs? use ImageMagick to convert to png.
-mkdir -p $PKG/usr/share/pixmaps
+mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps $PKG/usr/share/pixmaps
unzip -p $PAYLOAD graphics/icon.gif | \
- convert - $PKG/usr/share/pixmaps/$PRGNAM.png
+ convert - png32:$PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png
+ln -s ../icons/hicolor/32x32/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
# .desktop written for this build
mkdir -p $PKG/usr/share/applications