summaryrefslogtreecommitdiffstats
path: root/development/robomongo/robomongo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/robomongo/robomongo.SlackBuild')
-rw-r--r--development/robomongo/robomongo.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/development/robomongo/robomongo.SlackBuild b/development/robomongo/robomongo.SlackBuild
index 2091165fd4..d9ca9d031e 100644
--- a/development/robomongo/robomongo.SlackBuild
+++ b/development/robomongo/robomongo.SlackBuild
@@ -1,12 +1,15 @@
-#!/bin/sh
+#!/bin/bash
# Slackware Package Build Script for robomongo
# Home Page http://www.robomongo.org
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM="robomongo"
VERSION=${VERSION:-0.8.4}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
case "$( uname -m )" in
x86_64)
@@ -23,7 +26,14 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
esac
-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}
@@ -67,4 +77,4 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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