diff options
Diffstat (limited to 'office/hunspell-de')
-rw-r--r-- | office/hunspell-de/hunspell-de.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/office/hunspell-de/hunspell-de.SlackBuild b/office/hunspell-de/hunspell-de.SlackBuild index 988f78fd2c..a841c99254 100644 --- a/office/hunspell-de/hunspell-de.SlackBuild +++ b/office/hunspell-de/hunspell-de.SlackBuild @@ -28,8 +28,17 @@ PRGNAM=hunspell-de VERSION=${VERSION:-20161207} 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} @@ -70,4 +79,4 @@ mv Documentation/* $PKG/usr/doc/$PRGNAM-$VERSION/ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cd $PKG -/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |