diff options
Diffstat (limited to 'development/openjdk8/openjdk8.SlackBuild')
-rw-r--r-- | development/openjdk8/openjdk8.SlackBuild | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/development/openjdk8/openjdk8.SlackBuild b/development/openjdk8/openjdk8.SlackBuild index 6691c01d6d..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 2019 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:-8u222} +VERSION=${VERSION:-8u392} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} DVER=1.8.0_$(printf $VERSION | cut -du -f2) -ICEDTEA=icedtea-3.13.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,29 +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' -# It's old and some certificates inside have already expired but without it some java programs -#+ may throw exceptions. It is meant as a dummy placehoder file. -) \ - --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 @@ -129,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 |