aboutsummaryrefslogtreecommitdiff
path: root/development/robomongo/robomongo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/robomongo/robomongo.SlackBuild')
-rw-r--r--development/robomongo/robomongo.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/development/robomongo/robomongo.SlackBuild b/development/robomongo/robomongo.SlackBuild
index 143bf1b123bb..d9ca9d031e02 100644
--- a/development/robomongo/robomongo.SlackBuild
+++ b/development/robomongo/robomongo.SlackBuild
@@ -9,6 +9,7 @@ PRGNAM="robomongo"
VERSION=${VERSION:-0.8.4}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
case "$( uname -m )" in
x86_64)
@@ -25,6 +26,14 @@ case "$( uname -m )" in
*) ARCH=$( uname -m ) ;;
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}
@@ -68,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