mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
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:
parent
c886a2eac3
commit
a80d3fbf5f
2 changed files with 12 additions and 1 deletions
6
games/heroes/douninst.sh
Normal file
6
games/heroes/douninst.sh
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue