aboutsummaryrefslogtreecommitdiff
path: root/network/sickrage/sickrage.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/sickrage/sickrage.SlackBuild')
-rw-r--r--network/sickrage/sickrage.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/network/sickrage/sickrage.SlackBuild b/network/sickrage/sickrage.SlackBuild
index cc535fd053137..0692804a8f83d 100644
--- a/network/sickrage/sickrage.SlackBuild
+++ b/network/sickrage/sickrage.SlackBuild
@@ -29,6 +29,7 @@ VERSION=${VERSION:-2018.09.17_1}
SRCVER=$(echo $VERSION | tr _ -)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -54,6 +55,14 @@ elif ! grep ^$SICKUSER: /etc/passwd 2>&1 > /dev/null; then
exit 1
fi
+# 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}
@@ -95,4 +104,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