aboutsummaryrefslogtreecommitdiff
path: root/games/mari0
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
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')
-rw-r--r--games/mari0/doinst.sh6
-rw-r--r--games/mari0/mari0.SlackBuild12
-rw-r--r--games/mari0/mari0.desktop2
-rw-r--r--games/mari0/mari0.info2
4 files changed, 14 insertions, 8 deletions
diff --git a/games/mari0/doinst.sh b/games/mari0/doinst.sh
index 5fb28930db0b..3e5691a052b5 100644
--- a/games/mari0/doinst.sh
+++ b/games/mari0/doinst.sh
@@ -1,3 +1,9 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
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
diff --git a/games/mari0/mari0.desktop b/games/mari0/mari0.desktop
index 8931a69cc1d4..d07b82a5131b 100644
--- a/games/mari0/mari0.desktop
+++ b/games/mari0/mari0.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=Mari0
Comment=Super Mario/Portal Mashup
-Exec=mari0
+Exec=/usr/games/mari0
Icon=mari0
Terminal=false
Type=Application
diff --git a/games/mari0/mari0.info b/games/mari0/mari0.info
index c0d6f38970a4..a76ba3cca67a 100644
--- a/games/mari0/mari0.info
+++ b/games/mari0/mari0.info
@@ -1,6 +1,6 @@
PRGNAM="mari0"
VERSION="1.6"
-HOMEPAGE="http://stabyourself.net/mari0/"
+HOMEPAGE="https://stabyourself.net/mari0/"
DOWNLOAD="https://slackware.uk/~urchlay/src/mari0-source.zip"
MD5SUM="22125f68ff41795fa8bafad5d1b1d1a9"
DOWNLOAD_x86_64=""