diff options
Diffstat (limited to 'desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild')
-rw-r--r-- | desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild b/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild index 14fefb6ea5f00..017a4d4998642 100644 --- a/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild +++ b/desktop/Vanilla-DMZ/Vanilla-DMZ.SlackBuild @@ -12,6 +12,15 @@ VERSION=${VERSION:-0.4} ARCH=noarch 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 @@ -53,4 +62,4 @@ mkdir -p $PKG/install cat $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 |