From ecf033385d81ab3e561a538742abb840201c660b Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 7 Jan 2023 22:39:50 -0500 Subject: [PATCH] games/vectoroids: Fix doinst.sh and man page permission. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/vectoroids/doinst.sh | 9 +++++++++ games/vectoroids/vectoroids.SlackBuild | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 games/vectoroids/doinst.sh diff --git a/games/vectoroids/doinst.sh b/games/vectoroids/doinst.sh new file mode 100644 index 0000000000..3e5691a052 --- /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 7c5314cf29..ccf58afd80 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