diff options
Diffstat (limited to 'development/zulu-openjdk7/zulu-openjdk7.SlackBuild')
-rw-r--r-- | development/zulu-openjdk7/zulu-openjdk7.SlackBuild | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/development/zulu-openjdk7/zulu-openjdk7.SlackBuild b/development/zulu-openjdk7/zulu-openjdk7.SlackBuild index 52b9715514..7c9bdd5d76 100644 --- a/development/zulu-openjdk7/zulu-openjdk7.SlackBuild +++ b/development/zulu-openjdk7/zulu-openjdk7.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for zulu-openjdk7 # Copyright (c) 2017-2019, Sébastien Ballet <slacker6896 at gmail.com> +# Copyright (c) 2022, Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,26 +26,20 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zulu-openjdk7 -VERSION=${VERSION:-7.0.242} -ZULUVERSION=${ZULUVERSION:-7.34.0.5} +VERSION=${VERSION:-7.0.352} +ZULUVERSION=${ZULUVERSION:-7.56.0.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# The name of azul's zulu openjdk source archive has the syntax below : -# -# zulu<ZULU_VERSION>-jdk<JDK_VERSION>-linux_x64 -# -# Note: The archive's name is also the name of the top directory found -# in this archive. -# -SRCNAM="zulu${ZULUVERSION}-ca-jdk${VERSION}-linux_x64" - -ARCH=${ARCH:-$(uname -m)} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i686 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +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 @@ -54,14 +49,21 @@ TMP=${TMP:-/tmp/SBo} PKG=${TMP}/package-${PRGNAM} OUTPUT=${OUTPUT:-/tmp} -if [ "${ARCH}" = "x86_64" ] ; then - LIB_ARCH=amd64 +if [ "$ARCH" = "i686" ]; then + ZULU_ARCH=i686 + LIBDIRSUFFIX="" + JVMLIBARCH="i386" +elif [ "$ARCH" = "x86_64" ]; then + ZULU_ARCH=x64 LIBDIRSUFFIX="64" + JVMLIBARCH="amd64" else echo "Architecture ${ARCH} is not supported." exit 1 fi +SRCNAM=zulu${ZULUVERSION}-ca-jdk${VERSION}-linux_$ZULU_ARCH + set -e rm -rf $PKG @@ -85,9 +87,10 @@ find -L . \ # or "no". Default to "yes" # if [ "${CREATE_LIBJVM_SYMLINK:-yes}" = "yes" ] ; then - ln -sf \ - ${PRGNAM}/jre/lib/${LIB_ARCH}/server/libjvm.so \ - $PKG/usr/lib${LIBDIRSUFFIX}/libjvm.so + ( + cd $PKG/usr/lib${LIBDIRSUFFIX}/ + ln -sf $PRGNAM/jre/lib/${JVMLIBARCH}/server/libjvm.so + ) fi mkdir -p ${PKG}/etc/profile.d |