diff options
Diffstat (limited to 'misc/gcp/gcp.SlackBuild')
-rw-r--r-- | misc/gcp/gcp.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/misc/gcp/gcp.SlackBuild b/misc/gcp/gcp.SlackBuild index 6a2ff235bbfd4..4bb59537ec7b0 100644 --- a/misc/gcp/gcp.SlackBuild +++ b/misc/gcp/gcp.SlackBuild @@ -39,6 +39,15 @@ fi BUILD=${BUILD:-3} 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 @@ -83,4 +92,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 |