mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
e2040b5894
commit
ecf033385d
2 changed files with 13 additions and 1 deletions
9
games/vectoroids/doinst.sh
Normal file
9
games/vectoroids/doinst.sh
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue