aboutsummaryrefslogtreecommitdiff
path: root/games/mari0/mari0.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-10-21 04:13:25 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-29 17:07:21 +0700
commit2a8fcf4364958f4cc0fbdda841848780cf5bbe27 (patch)
tree8b84e57c5455f7e10e9bc420baa9251a316688e7 /games/mari0/mari0.SlackBuild
parent588cbe19885595689cc1dc8e3e8100a7477880f3 (diff)
games/mari0: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mari0/mari0.SlackBuild')
-rw-r--r--games/mari0/mari0.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/mari0/mari0.SlackBuild b/games/mari0/mari0.SlackBuild
index 07ded1afdbfa..54ded2084dee 100644
--- a/games/mari0/mari0.SlackBuild
+++ b/games/mari0/mari0.SlackBuild
@@ -6,20 +6,19 @@
# 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