games/dungeon: Fix -current build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-10-06 15:07:50 -04:00 committed by Willy Sudiarto Raharjo
parent f61c55cdf5
commit bb4987c371
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20211006 bkw: BUILD=3, fix -current build.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=dungeon
VERSION=${VERSION:-19800808}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -22,9 +24,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -65,10 +64,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod 644 *
[ "${DEBUG:-no}" = "yes" ] && DFLAG='DEBUG=1'
make FFLAGS="$SLKCFLAGS" $DFLAG
make FFLAGS="$SLKCFLAGS -fallow-invalid-boz" $DFLAG
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION