aboutsummaryrefslogtreecommitdiff
path: root/games/eduke32/eduke32.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/eduke32/eduke32.SlackBuild')
-rw-r--r--games/eduke32/eduke32.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/games/eduke32/eduke32.SlackBuild b/games/eduke32/eduke32.SlackBuild
index 1ff3b88489b04..373d4f78d1587 100644
--- a/games/eduke32/eduke32.SlackBuild
+++ b/games/eduke32/eduke32.SlackBuild
@@ -30,6 +30,15 @@ PRGNAM=eduke32
VERSION=${VERSION:-20170123_6052}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+# 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
@@ -160,4 +169,4 @@ sed -e "s,@SDL_TARGET@,$SDL_TARGET," \
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