From fcfb4045f605abf9971b6512c48bcd9daf422a6e Mon Sep 17 00:00:00 2001 From: B. Watson Date: Thu, 28 Oct 2021 06:37:52 -0400 Subject: games/mednaffe: Fix old-style icon. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/mednaffe/mednaffe.SlackBuild | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'games/mednaffe') diff --git a/games/mednaffe/mednaffe.SlackBuild b/games/mednaffe/mednaffe.SlackBuild index 938384c748..c9909b8023 100644 --- a/games/mednaffe/mednaffe.SlackBuild +++ b/games/mednaffe/mednaffe.SlackBuild @@ -6,6 +6,9 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211028 bkw: BUILD=2 +# - fix old-style icon. + # 20210222 bkw: update for v0.9.1. Upstream dropped support for GTK+2, # so got rid of GTKVER environment variable. @@ -13,7 +16,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mednaffe VERSION=${VERSION:-0.9.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -25,9 +28,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -78,6 +78,14 @@ CXXFLAGS="$SLKCFLAGS" \ make make install-strip DESTDIR=$PKG +# 20211028 bkw: old-style icon is (a) too big (128x128) and (b) a copy +# when it should be a symlink. +rm -f $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + +# 20211028 bkw: in case someone don't got /usr/games in $PATH: +sed -i 's,Exec=,&/usr/games/,' $PKG/usr/share/applications/$PRGNAM.desktop + # docs already installed, just add this: cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3