diff options
Diffstat (limited to 'libraries/libpng-legacy12/libpng-legacy12.SlackBuild')
-rw-r--r-- | libraries/libpng-legacy12/libpng-legacy12.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/libpng-legacy12/libpng-legacy12.SlackBuild b/libraries/libpng-legacy12/libpng-legacy12.SlackBuild index 42f93fc2cf9fa..9ecd6eba62448 100644 --- a/libraries/libpng-legacy12/libpng-legacy12.SlackBuild +++ b/libraries/libpng-legacy12/libpng-legacy12.SlackBuild @@ -12,6 +12,7 @@ PRGNAM=libpng-legacy12 VERSION=${VERSION:-1.2.57} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} UPSTREAM_VER=${UPSTREAM_VER:-1.4.20} UPSTREAM_BUILD=${UPSTREAM_BUILD:-1} @@ -34,6 +35,14 @@ case "$ARCH" in *) echo "Warning: unrecognized ARCH '$ARCH'" ;; esac +# 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} @@ -67,4 +76,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc grep libpng12.so ./install/doinst.sh > $PKG/install/doinst.sh 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 |