diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-07-23 08:05:22 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-23 11:13:17 +0700 |
commit | 0706779949794b70536767680f4c1b49a7a77dab (patch) | |
tree | e268ddf9f0160065a06135c6cc6bea22c5679aa3 /development/zulu-openjdk11/zulu-openjdk11.SlackBuild | |
parent | cd65fa336b2e1f3a5be80e09fd7a21249a0fa89e (diff) |
development/zulu-openjdk11: Updated for version 11.0.16, new maint.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/zulu-openjdk11/zulu-openjdk11.SlackBuild')
-rw-r--r-- | development/zulu-openjdk11/zulu-openjdk11.SlackBuild | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/development/zulu-openjdk11/zulu-openjdk11.SlackBuild b/development/zulu-openjdk11/zulu-openjdk11.SlackBuild index 94290a8b64a9..c237b85df750 100644 --- a/development/zulu-openjdk11/zulu-openjdk11.SlackBuild +++ b/development/zulu-openjdk11/zulu-openjdk11.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for zulu-openjdk11 # Copyright (c) 2018, 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,8 +26,9 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zulu-openjdk11 -VERSION=${VERSION:-11.0.14.1} -ZULUVERSION=${ZULUVERSION:-11.54.25} +VERSION=${VERSION:-11.0.16} +ZULUVERSION64=${ZULUVERSION:-11.58.15} +ZULUVERSION32=${ZULUVERSION:-11.58.17} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -50,9 +52,11 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i686" ]; then ZULU_ARCH=i686 + ZULUVERSION=$ZULUVERSION32 LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then ZULU_ARCH=x64 + ZULUVERSION=$ZULUVERSION64 LIBDIRSUFFIX="64" else echo "Architecture ${ARCH} is not supported." @@ -66,8 +70,8 @@ set -e rm -rf ${PKG} mkdir -p ${TMP} ${PKG} ${OUTPUT} -mkdir -p ${PKG}/usr/lib64/ -cd ${PKG}/usr/lib64/ +mkdir -p ${PKG}/usr/lib$LIBDIRSUFFIX/ +cd ${PKG}/usr/lib$LIBDIRSUFFIX/ tar xvf ${CWD}/${SRCNAM}.tar.gz mv ${SRCNAM} ${PRGNAM} @@ -80,7 +84,7 @@ find -L . \ mkdir -p ${PKG}/etc/profile.d for SCRIPT in ${PRGNAM}.sh ${PRGNAM}.csh ; do - cat ${CWD}/${SCRIPT} > ${PKG}/etc/profile.d/${SCRIPT} + sed -e s/%LIBDIRSUFFIX%/$LIBDIRSUFFIX/g ${CWD}/${SCRIPT} > ${PKG}/etc/profile.d/${SCRIPT} chmod 755 ${PKG}/etc/profile.d/${SCRIPT} done @@ -88,10 +92,10 @@ mkdir -p ${PKG}/usr/doc/${PRGNAM}-${VERSION} # move folder demo/ in documentation directory # -mv ${PKG}/usr/lib64/${PRGNAM}/demo ${PKG}/usr/doc/${PRGNAM}-${VERSION} +mv ${PKG}/usr/lib$LIBDIRSUFFIX/${PRGNAM}/demo ${PKG}/usr/doc/${PRGNAM}-${VERSION} for CFILE in DISCLAIMER Welcome.html readme.txt ; do - mv ${PKG}/usr/lib64/${PRGNAM}/${CFILE} ${PKG}/usr/doc/${PRGNAM}-${VERSION} + mv ${PKG}/usr/lib$LIBDIRSUFFIX/${PRGNAM}/${CFILE} ${PKG}/usr/doc/${PRGNAM}-${VERSION} done cat ${CWD}/${PRGNAM}.SlackBuild > ${PKG}/usr/doc/${PRGNAM}-${VERSION}/${PRGNAM}.SlackBuild |