diff options
Diffstat (limited to 'audio/podget/podget.SlackBuild')
-rw-r--r-- | audio/podget/podget.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/audio/podget/podget.SlackBuild b/audio/podget/podget.SlackBuild index 6f8c2654daa2..c17e4f9a9ce1 100644 --- a/audio/podget/podget.SlackBuild +++ b/audio/podget/podget.SlackBuild @@ -41,9 +41,18 @@ PRGNAM=podget VERSION=${VERSION:-0.8.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch +# 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} @@ -97,4 +106,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |