diff options
Diffstat (limited to 'games/endgame-singularity')
-rw-r--r-- | games/endgame-singularity/endgame-singularity.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/games/endgame-singularity/endgame-singularity.SlackBuild b/games/endgame-singularity/endgame-singularity.SlackBuild index 7b1a9003574c5..f9b2263d9a666 100644 --- a/games/endgame-singularity/endgame-singularity.SlackBuild +++ b/games/endgame-singularity/endgame-singularity.SlackBuild @@ -30,6 +30,7 @@ PRGNAM=endgame-singularity VERSION=${VERSION:-1.00} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=singularity MUSICNAM=endgame-singularity-music-007 @@ -42,6 +43,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} @@ -111,4 +120,4 @@ mkdir -p $PKG/usr/share/applications cat $SRCNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop 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 |