diff options
Diffstat (limited to 'games/ultimatestunts/ultimatestunts.SlackBuild')
-rw-r--r-- | games/ultimatestunts/ultimatestunts.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/games/ultimatestunts/ultimatestunts.SlackBuild b/games/ultimatestunts/ultimatestunts.SlackBuild index 4ba36eee5c..273667e0af 100644 --- a/games/ultimatestunts/ultimatestunts.SlackBuild +++ b/games/ultimatestunts/ultimatestunts.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ultimatestunts -# Copyright 2018 - 2020 Johannes Schoepfer, Germany +# Copyright 2018 - 2022 Johannes Schoepfer, Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,11 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=ultimatestunts VERSION=${VERSION:-0.7.7.1} SRC_VER=$(echo $VERSION | tr -d \.) BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -79,7 +86,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --build=$ARCH-slackware-linux -make +make -j1 make sysconfdir=$PKG/etc prefix=$PKG/usr install mv $PKG/etc/$PRGNAM.conf $PKG/etc/$PRGNAM.conf.new @@ -102,4 +109,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 |