diff options
Diffstat (limited to 'network/identicurse/identicurse.SlackBuild')
-rw-r--r-- | network/identicurse/identicurse.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/network/identicurse/identicurse.SlackBuild b/network/identicurse/identicurse.SlackBuild index fa414811473ae..326887ef52541 100644 --- a/network/identicurse/identicurse.SlackBuild +++ b/network/identicurse/identicurse.SlackBuild @@ -11,6 +11,7 @@ PRGNAM=identicurse VERSION=${VERSION:-0.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} #VERSIONMIN=3a #SRCVERSION=$(echo $VERSION | cut -f1-2 -d.) @@ -23,6 +24,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} @@ -78,4 +87,4 @@ mv $PKG/usr/identicurse/config.json $PKG/usr/identicurse/README \ rmdir $PKG/usr/identicurse 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 |