diff options
author | B. Watson <yalhcru@gmail.com> | 2021-10-20 17:04:11 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-29 17:07:21 +0700 |
commit | c8ef264878c22a46bef00b22f3c2b137a341b79f (patch) | |
tree | 6ffa28d42df0bfb38e070ff86b158030b0cbd632 /games | |
parent | 9c060af33789d7d7a204d94b4377515b9bccee18 (diff) |
games/ostrichriders: Old-style icon.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/ostrichriders/ostrichriders.SlackBuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/games/ostrichriders/ostrichriders.SlackBuild b/games/ostrichriders/ostrichriders.SlackBuild index 6e2b2b61a2d0a..5c6fdd80708b5 100644 --- a/games/ostrichriders/ostrichriders.SlackBuild +++ b/games/ostrichriders/ostrichriders.SlackBuild @@ -6,13 +6,14 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211020 bkw: BUILD=2, add old-style icon # 20191130 bkw: update for v0.6.5, update man page to add new -a option cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ostrichriders VERSION=${VERSION:-0.6.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -24,9 +25,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 @@ -69,6 +67,8 @@ rm -f data/mods/sandbox/media/Thumbs.db \ # SBo's SFML doesn't ship a .pc file for pkg-config, so do it the hard # way. -Wl,-s strips the binary. +sed -i 's,Exec=,&/usr/games/,' $PRGNAM.desktop + make PREFIX=/usr \ BINDIR=/usr/games \ DESTDIR=$PKG \ @@ -83,6 +83,10 @@ make PREFIX=/usr \ all \ install +# 20211020 bkw: old-style icon. +mkdir -p $PKG/usr/share/pixmaps +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png + # man page written for this build (if nothing else, I need the practice). mkdir -p $PKG/usr/man/man6 gzip -9c < $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz |