diff options
Diffstat (limited to 'graphics/gallery/gallery.SlackBuild')
-rw-r--r-- | graphics/gallery/gallery.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/graphics/gallery/gallery.SlackBuild b/graphics/gallery/gallery.SlackBuild index 2b4f368751..e15e31cf04 100644 --- a/graphics/gallery/gallery.SlackBuild +++ b/graphics/gallery/gallery.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for gallery3 # Home Page http://galleryproject.org @@ -25,14 +25,24 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM="gallery" VERSION=${VERSION:-3.0.9} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch # hardcode ARCH -CWD=$(pwd) +# 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} @@ -91,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 |