diff options
Diffstat (limited to 'development/openjdk8/openjdk8.SlackBuild')
-rw-r--r-- | development/openjdk8/openjdk8.SlackBuild | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/development/openjdk8/openjdk8.SlackBuild b/development/openjdk8/openjdk8.SlackBuild index d3b1688d81..9a739b22a3 100644 --- a/development/openjdk8/openjdk8.SlackBuild +++ b/development/openjdk8/openjdk8.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for OpenJDK -# Copyright 2020 Strahil Yordanov, Sofia, Bulgaria +# Copyright 2022 Strahil Yordanov, Sofia, Bulgaria # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=openjdk8 -VERSION=${VERSION:-8u252} +VERSION=${VERSION:-8u392} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} DVER=1.8.0_$(printf $VERSION | cut -du -f2) -ICEDTEA=icedtea-3.16.0 +ICEDTEA=icedtea-3.29.0 if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,7 +41,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD="$(pwd)" +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} BUILD_DIR=$TMP/$PRGNAM PKG=$TMP/package-$PRGNAM @@ -53,7 +60,8 @@ else fi BOOT_JAVA=/usr/lib${LIBDIRSUFFIX}/openjdk7 -[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%?}8 +[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%/*}/zulu-openjdk7 +[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%/*}/openjdk8 [ ! -d ${BOOT_JAVA} ] && { echo "Boot java not found"; exit 1; } set -e @@ -69,27 +77,14 @@ cd icedtea-build # Set JAVA_HOME in order to avoid conflicts with other already installed JVMs. JAVA_HOME=${BOOT_JAVA} PATH=${BOOT_JAVA}/bin:$PATH ../$ICEDTEA/configure \ - --disable-docs \ --disable-downloading \ + --disable-docs \ --with-jdk-home=${BOOT_JAVA} \ --disable-system-kerberos \ --disable-system-pcsc \ --disable-system-sctp \ - --with-cacerts-file="$CWD/cacerts" \ -$( -# cacerts is taken from this CentOS package: -#+ http://mirror.centos.org/centos/6/os/x86_64/Packages/ca-certificates-2015.2.4-65.0.1.el6_6.noarch.rpm -# You can list its contents with this command (after you install this package:) -#+ 'keytool -v -list -keystore ./cacerts -storepass changeit' -) \ - --with-openjdk-src-zip="$CWD/openjdk.tar.xz" \ - --with-corba-src-zip="$CWD/corba.tar.xz" \ - --with-jaxp-src-zip="$CWD/jaxp.tar.xz" \ - --with-jaxws-src-zip="$CWD/jaxws.tar.xz" \ - --with-jdk-src-zip="$CWD/jdk.tar.xz" \ - --with-langtools-src-zip="$CWD/langtools.tar.xz" \ - --with-nashorn-src-zip="$CWD/nashorn.tar.xz" \ - --with-hotspot-src-zip="$CWD/hotspot.tar.xz" + --enable-nss \ + --with-openjdk-src-zip="$CWD/openjdk-git.tar.xz" JAVA_HOME=${BOOT_JAVA} PATH=${BOOT_JAVA}/bin:$PATH LOG=trace make cd $PKG @@ -127,4 +122,4 @@ cp -a $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/{THIRD_PARTY_README,LICENSE,ASSEMBLY_E cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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 |