summaryrefslogtreecommitdiffstats
path: root/games/ultimatestunts/ultimatestunts.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/ultimatestunts/ultimatestunts.SlackBuild')
-rw-r--r--games/ultimatestunts/ultimatestunts.SlackBuild24
1 files changed, 16 insertions, 8 deletions
diff --git a/games/ultimatestunts/ultimatestunts.SlackBuild b/games/ultimatestunts/ultimatestunts.SlackBuild
index 093fd3d33f..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 Johannes Schoepfer
+# Copyright 2018 - 2022 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +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:-0771}
+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
@@ -35,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}
@@ -59,9 +67,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-srcdata-$VERSION
-tar xvf $CWD/$PRGNAM-srcdata-$VERSION.tar.gz
-cd $PRGNAM-srcdata-$VERSION
+rm -rf $PRGNAM-srcdata-$SRC_VER
+tar xvf $CWD/$PRGNAM-srcdata-$SRC_VER.tar.gz
+cd $PRGNAM-srcdata-$SRC_VER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -101,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