diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-07 22:39:50 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:21 +0700 |
commit | ecf033385d81ab3e561a538742abb840201c660b (patch) | |
tree | fbdd42c9c525fb8faaf06f9c5b95ed66467cc2fc /games | |
parent | e2040b5894da3b28d991e4772284026273c54621 (diff) |
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>
Diffstat (limited to 'games')
-rw-r--r-- | games/vectoroids/doinst.sh | 9 | ||||
-rw-r--r-- | games/vectoroids/vectoroids.SlackBuild | 5 |
2 files changed, 13 insertions, 1 deletions
diff --git a/games/vectoroids/doinst.sh b/games/vectoroids/doinst.sh new file mode 100644 index 0000000000000..3e5691a052b5b --- /dev/null +++ b/games/vectoroids/doinst.sh @@ -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 diff --git a/games/vectoroids/vectoroids.SlackBuild b/games/vectoroids/vectoroids.SlackBuild index 7c5314cf2926a..ccf58afd800f4 100644 --- a/games/vectoroids/vectoroids.SlackBuild +++ b/games/vectoroids/vectoroids.SlackBuild @@ -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 |