aboutsummaryrefslogtreecommitdiff
path: root/office/plover/plover.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/plover/plover.SlackBuild')
-rw-r--r--office/plover/plover.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/office/plover/plover.SlackBuild b/office/plover/plover.SlackBuild
index 6e7007109dea..e775a5458374 100644
--- a/office/plover/plover.SlackBuild
+++ b/office/plover/plover.SlackBuild
@@ -28,6 +28,7 @@ PRGNAM=plover
VERSION=${VERSION:-4.0.0.dev8.66.g685bd33}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=${ARCH:-$(uname -m)}
if [ $ARCH != "x86_64" ]; then
@@ -35,6 +36,14 @@ if [ $ARCH != "x86_64" ]; 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}
@@ -68,4 +77,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