aboutsummaryrefslogtreecommitdiff
path: root/system/kbfs/kbfs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/kbfs/kbfs.SlackBuild')
-rw-r--r--system/kbfs/kbfs.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/system/kbfs/kbfs.SlackBuild b/system/kbfs/kbfs.SlackBuild
index 4bfa950a43b01..e6a15a1a0c9f9 100644
--- a/system/kbfs/kbfs.SlackBuild
+++ b/system/kbfs/kbfs.SlackBuild
@@ -31,6 +31,7 @@ COMMITVER=763227b4c6
SRCVER=$(echo $VERSION | tr _ - )
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
KBFS_USER=${KBFS_USER:-keybasehelper}
KBFS_UID=${KBFS_UID:-352}
@@ -59,6 +60,14 @@ elif ! grep -q "^$KBFS_GROUP:" /etc/group; then
bailout
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}
@@ -114,4 +123,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