From a80d3fbf5ffebff27a54983504fe9ba6e202b7c5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 4 Jul 2023 21:53:38 -0400 Subject: [PATCH] games/heroes: Handle /usr/info files. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/heroes/douninst.sh | 6 ++++++ games/heroes/heroes.SlackBuild | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 games/heroes/douninst.sh diff --git a/games/heroes/douninst.sh b/games/heroes/douninst.sh new file mode 100644 index 0000000000..1bef502028 --- /dev/null +++ b/games/heroes/douninst.sh @@ -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 diff --git a/games/heroes/heroes.SlackBuild b/games/heroes/heroes.SlackBuild index 139ea5329e..78e26319ce 100644 --- a/games/heroes/heroes.SlackBuild +++ b/games/heroes/heroes.SlackBuild @@ -11,11 +11,14 @@ # All-in-one build. No way am I having 5 builds for the data, sfx, etc # source packages. +# 20230704 bkw: BUILD=2 +# - add doinst/douninst to handle .info files. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=heroes VERSION=${VERSION:-0.21} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -151,6 +154,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc 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 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE