games/heroes: Handle /usr/info files.

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-07-04 21:53:38 -04:00 committed by Willy Sudiarto Raharjo
parent c886a2eac3
commit a80d3fbf5f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 12 additions and 1 deletions

6
games/heroes/douninst.sh Normal file
View file

@ -0,0 +1,6 @@
if [ -x /usr/bin/install-info -a -d usr/info ]; then
( cd usr/info
rm -f dir
for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
)
fi

View file

@ -11,11 +11,14 @@
# All-in-one build. No way am I having 5 builds for the data, sfx, etc # All-in-one build. No way am I having 5 builds for the data, sfx, etc
# source packages. # source packages.
# 20230704 bkw: BUILD=2
# - add doinst/douninst to handle .info files.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=heroes PRGNAM=heroes
VERSION=${VERSION:-0.21} VERSION=${VERSION:-0.21}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -151,6 +154,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/douninst.sh >> $PKG/install/doinst.sh
cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE