summaryrefslogtreecommitdiffstats
path: root/academic/jugglinglab/jugglinglab.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/jugglinglab/jugglinglab.SlackBuild')
-rw-r--r--academic/jugglinglab/jugglinglab.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/academic/jugglinglab/jugglinglab.SlackBuild b/academic/jugglinglab/jugglinglab.SlackBuild
index d61cd9becc..1320dcd5da 100644
--- a/academic/jugglinglab/jugglinglab.SlackBuild
+++ b/academic/jugglinglab/jugglinglab.SlackBuild
@@ -10,9 +10,18 @@ PRGNAM=jugglinglab
VERSION=${VERSION:-0.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
+# 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}
@@ -47,4 +56,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/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