aboutsummaryrefslogtreecommitdiff
path: root/libraries/openjfx/openjfx.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/openjfx/openjfx.SlackBuild')
-rw-r--r--libraries/openjfx/openjfx.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/libraries/openjfx/openjfx.SlackBuild b/libraries/openjfx/openjfx.SlackBuild
index ea2c49353087c..8e3924baff680 100644
--- a/libraries/openjfx/openjfx.SlackBuild
+++ b/libraries/openjfx/openjfx.SlackBuild
@@ -28,6 +28,7 @@ PRGNAM=openjfx
VERSION=${VERSION:-8u60}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$PRGNAM-$VERSION-sdk-overlay-linux-amd64.zip"
@@ -48,6 +49,14 @@ if ! echo $JAVA_HOME | grep 64 ; then
echo "No valid JRE installation found in $JAVA_HOME to match ARCH $ARCH or $JAVA_HOME not set properly."; 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}
@@ -79,4 +88,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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