games/ostrichriders: Old-style icon.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-10-20 17:04:11 -04:00 committed by Willy Sudiarto Raharjo
parent 9c060af337
commit c8ef264878
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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