diff options
Diffstat (limited to 'games/uqm/uqm.SlackBuild')
-rw-r--r-- | games/uqm/uqm.SlackBuild | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/games/uqm/uqm.SlackBuild b/games/uqm/uqm.SlackBuild index b59c0ab660..461c59a213 100644 --- a/games/uqm/uqm.SlackBuild +++ b/games/uqm/uqm.SlackBuild @@ -1,11 +1,13 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for uqm -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230107 bkw: BUILD=2, fix doinst.sh. + # 20210304 bkw: update for v0.8.0. script changed a good bit, can't # build older versions. Note to self: don't mix engine and content # versions without testing thoroughly! 0.7.0 engine seemed to work @@ -16,10 +18,13 @@ # hasn't changed, so VERSION now has both versions. Also, moved # the binary to /usr/games where it belongs. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=uqm VERSION=${VERSION:-0.8.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} # Extract the tarball and content versions. If there's no + in # VERSION, both these will end up equal to VERSION. Otherwise use a + @@ -35,7 +40,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} @@ -188,4 +197,4 @@ sed -e "s,@CONTVER@,$CONTVER," \ 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 |