games/vectoroids: Fix doinst.sh and man page permission.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-01-07 22:39:50 -05:00 committed by Willy Sudiarto Raharjo
parent e2040b5894
commit ecf033385d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +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

View file

@ -6,6 +6,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20230107 bkw: BUILD=3, add doinst.sh, fix man page permission.
# 20211016 bkw: BUILD=2
# - add icons and .desktop
@ -13,7 +14,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vectoroids
VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -72,6 +73,7 @@ mkdir -p $PKG/usr $PKG/usr/games
strip $PRGNAM
make install PREFIX=$PKG/usr BIN_PREFIX=$PKG/usr/games
chmod 644 $PKG/usr/man/man6/*.6
gzip -9 $PKG/usr/man/man6/*.6
# Upstream's icon.png is barely visible due to being vector
@ -103,6 +105,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE