diff options
Diffstat (limited to 'development/adoptopenjdk')
-rw-r--r-- | development/adoptopenjdk/adoptopenjdk.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/development/adoptopenjdk/adoptopenjdk.SlackBuild b/development/adoptopenjdk/adoptopenjdk.SlackBuild index 25fb9bef051e..fb5cfe33242a 100644 --- a/development/adoptopenjdk/adoptopenjdk.SlackBuild +++ b/development/adoptopenjdk/adoptopenjdk.SlackBuild @@ -27,12 +27,21 @@ VERSION=${VERSION:-12.0.2+10} BUILD=${BUILD:-1} ARCH=${ARCH:-$(uname -m)} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} MAJORVER=${VERSION%+*} MINORVER=${VERSION#*+} TARNAM=OpenJDK12U-jdk_x64_linux_hotspot_${MAJORVER}_${MINORVER}.tar.gz +# 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} @@ -106,4 +115,4 @@ cat ${CWD}/slack-desc > ${PKG}/install/slack-desc # Build the package. 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 |