diff options
Diffstat (limited to 'games/tbftss/tbftss.SlackBuild')
-rw-r--r-- | games/tbftss/tbftss.SlackBuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/games/tbftss/tbftss.SlackBuild b/games/tbftss/tbftss.SlackBuild index 36f644a6e6..93d75806a1 100644 --- a/games/tbftss/tbftss.SlackBuild +++ b/games/tbftss/tbftss.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tbftss pandoran war # (the battle for the solar systme - pandoran war) # Written by Tim Dickson dickson.tim at googlemail.com @@ -10,10 +10,13 @@ # doc location still changed to support slackware prefered location # 28/11/2019 update to 1.5.1 and fixes due to change in packaging of source +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=tbftss VERSION=${VERSION:-1.5.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -23,7 +26,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -47,9 +57,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -rm -rf build +#rm -rf build tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz -cd build/$PRGNAM-$VERSION +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -73,4 +83,4 @@ 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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |