aboutsummaryrefslogtreecommitdiff
path: root/development/zulu-openjdk17/zulu-openjdk17.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-09-23 17:54:48 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-09-25 13:59:49 +0700
commitf4a94e090c6c1fcc26bdf97bad0d4ff6a69886a2 (patch)
tree2ae7ca139de2b75b3c8c13c5868cbc87f90c92f8 /development/zulu-openjdk17/zulu-openjdk17.SlackBuild
parent9bc2984db3d56c150a78bcce4928a8dce0f5b772 (diff)
development/zulu-openjdk17: Updated for version 17.0.4.1, 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-openjdk17/zulu-openjdk17.SlackBuild')
-rw-r--r--development/zulu-openjdk17/zulu-openjdk17.SlackBuild26
1 files changed, 19 insertions, 7 deletions
diff --git a/development/zulu-openjdk17/zulu-openjdk17.SlackBuild b/development/zulu-openjdk17/zulu-openjdk17.SlackBuild
index a3600673dbf1..9e5f7dd1d750 100644
--- a/development/zulu-openjdk17/zulu-openjdk17.SlackBuild
+++ b/development/zulu-openjdk17/zulu-openjdk17.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for zulu-openjdk17
# Copyright (c) 2021, Gustavo B. Schenkel <gustavo dot schenkel 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-openjdk17
-VERSION=${VERSION:-17.0.2}
-ZULUVERSION=${ZULUVERSION:-17.32.13}
+VERSION=${VERSION:-17.0.4.1}
+ZULUVERSION32=${ZULUVERSION32:-17.36.19}
+ZULUVERSION64=${ZULUVERSION64:-17.36.17}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,9 +52,19 @@ 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"
+elif [ "$ARCH" = "arm" ]; then
+ ZULU_ARCH=aarch32hf
+ ZULUVERSION=$ZULUVERSION32
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "aarch64" ]; then
+ ZULU_ARCH=aarch64
+ ZULUVERSION=$ZULUVERSION64
LIBDIRSUFFIX="64"
else
echo "Architecture ${ARCH} is not supported."
@@ -66,8 +78,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 +92,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 +100,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