diff options
Diffstat (limited to 'games/liquidwar6/liquidwar6.SlackBuild')
-rw-r--r-- | games/liquidwar6/liquidwar6.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/games/liquidwar6/liquidwar6.SlackBuild b/games/liquidwar6/liquidwar6.SlackBuild index ee020feec33b7..14b78e0112f67 100644 --- a/games/liquidwar6/liquidwar6.SlackBuild +++ b/games/liquidwar6/liquidwar6.SlackBuild @@ -14,6 +14,7 @@ PRGNAM=liquidwar6 VERSION=${VERSION:-0.6.3902} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SHORTNAM=${PRGNAM/[0-9]*/} @@ -25,6 +26,14 @@ if [ -z "$ARCH" ]; then esac fi +# 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} @@ -118,4 +127,4 @@ if [ -r $CWD/$PRGNAM-extra-maps-$VERSION.tar.gz ]; then fi 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 |