diff options
Diffstat (limited to 'graphics/gallery/gallery.SlackBuild')
-rw-r--r-- | graphics/gallery/gallery.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/gallery/gallery.SlackBuild b/graphics/gallery/gallery.SlackBuild index b328e35219760..e15e31cf0420b 100644 --- a/graphics/gallery/gallery.SlackBuild +++ b/graphics/gallery/gallery.SlackBuild @@ -31,9 +31,18 @@ PRGNAM="gallery" VERSION=${VERSION:-3.0.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch # hardcode ARCH +# 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} @@ -92,4 +101,4 @@ sed -i "s|@WEBUSER@|${WEBUSER}|" $PKG/install/doinst.sh sed -i "s|@WEBGROUP@|${WEBGROUP}|" $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 |