diff options
Diffstat (limited to 'academic/sword-data-kjv')
-rw-r--r-- | academic/sword-data-kjv/sword-data-kjv.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/academic/sword-data-kjv/sword-data-kjv.SlackBuild b/academic/sword-data-kjv/sword-data-kjv.SlackBuild index bbe3d67f47..dfee4e68a4 100644 --- a/academic/sword-data-kjv/sword-data-kjv.SlackBuild +++ b/academic/sword-data-kjv/sword-data-kjv.SlackBuild @@ -28,10 +28,19 @@ PRGNAM=sword-data-kjv VERSION=${VERSION:-1.8.1_1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} #this is a data package, architecture is irrelevant 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} @@ -75,4 +84,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 |