diff options
Diffstat (limited to 'games/ds-models')
-rw-r--r-- | games/ds-models/ds-models.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/games/ds-models/ds-models.SlackBuild b/games/ds-models/ds-models.SlackBuild index 01d5eb3c02b2a..8e048ee7b67c5 100644 --- a/games/ds-models/ds-models.SlackBuild +++ b/games/ds-models/ds-models.SlackBuild @@ -21,6 +21,15 @@ PRGNAM=ds-models VERSION=${VERSION:-r15} BUILD=${BUILD:-2} 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 @@ -131,4 +140,4 @@ mkdir -p $PKG/install sed "s/@GAME@/$GAME/" $CWD/slack-desc > $PKG/install/slack-desc 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 |