diff options
Diffstat (limited to 'games/mari0')
-rw-r--r-- | games/mari0/doinst.sh | 6 | ||||
-rw-r--r-- | games/mari0/mari0.SlackBuild | 12 | ||||
-rw-r--r-- | games/mari0/mari0.desktop | 2 | ||||
-rw-r--r-- | games/mari0/mari0.info | 2 |
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="" |