summaryrefslogtreecommitdiffstats
path: root/games/mari0
diff options
context:
space:
mode:
Diffstat (limited to 'games/mari0')
-rw-r--r--games/mari0/doinst.sh6
-rw-r--r--games/mari0/mari0.SlackBuild14
-rw-r--r--games/mari0/mari0.desktop2
-rw-r--r--games/mari0/mari0.info4
4 files changed, 16 insertions, 10 deletions
diff --git a/games/mari0/doinst.sh b/games/mari0/doinst.sh
index 5fb28930db..3e5691a052 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 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
diff --git a/games/mari0/mari0.desktop b/games/mari0/mari0.desktop
index 8931a69cc1..d07b82a513 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 c0d6f38970..c9cb20dd0d 100644
--- a/games/mari0/mari0.info
+++ b/games/mari0/mari0.info
@@ -1,10 +1,10 @@
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=""
MD5SUM_x86_64=""
REQUIRES="love-legacy080"
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"