diff options
Diffstat (limited to 'development/apache-ant/apache-ant.SlackBuild')
-rw-r--r-- | development/apache-ant/apache-ant.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/development/apache-ant/apache-ant.SlackBuild b/development/apache-ant/apache-ant.SlackBuild index 631c1eb13a75..98dd78bfef1e 100644 --- a/development/apache-ant/apache-ant.SlackBuild +++ b/development/apache-ant/apache-ant.SlackBuild @@ -34,11 +34,20 @@ VERSION=${VERSION:-1.9.14} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} TEAM=$(echo $PRGNAM | cut -d- -f1) PROJECT=$(echo $PRGNAM | cut -d- -f2) ANT_HOME=/usr/share/$PROJECT +# 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} @@ -90,4 +99,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 |