aboutsummaryrefslogtreecommitdiff
path: root/system/ioninja/ioninja.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/ioninja/ioninja.SlackBuild')
-rw-r--r--system/ioninja/ioninja.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/ioninja/ioninja.SlackBuild b/system/ioninja/ioninja.SlackBuild
index 8d6d8bebdff1..5ec388adb72b 100644
--- a/system/ioninja/ioninja.SlackBuild
+++ b/system/ioninja/ioninja.SlackBuild
@@ -28,6 +28,7 @@ PRGNAM=ioninja
VERSION=${VERSION:-3.10.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
case "$( uname -m )" in
i?86) ARCH=i586 ; BASENAME=${BASENAME:-ioninja-$VERSION-linux-x86} ;;
@@ -36,6 +37,14 @@ case "$( uname -m )" in
esac
set -e
+# 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}
@@ -65,4 +74,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