diff --git a/d/openjdk/SlackBuild b/d/openjdk/SlackBuild new file mode 100755 index 00000000..c63910c5 --- /dev/null +++ b/d/openjdk/SlackBuild @@ -0,0 +1,21 @@ +#!/bin/bash +set -x -e + +VERSION=${VERSION:-21.0.2} +RANDOMHEX=${RANDOMHEX:-f2283984656d49d69e91c558476027ac} +BUILD=1 + +TAG=gwh +TMP=/tmp/$TAG + +mkdir -p $TMP + +[ -e $TMP/java/ ] && rm -fr $TMP/java/ + +cp -a /home/installs/mirrors/slackware64-current/extra/java/ $TMP/ + +cd $TMP/java/ || exit 1 + +wget -c "https://download.java.net/java/GA/jdk${VERSION}/${RANDOMHEX}/13/GPL/openjdk-${VERSION}_linux-x64_bin.tar.gz" -O "./jdk-${VERSION}_linux-x64_bin.tar.gz" + +BUILD=$BUILD$TAG ./java.SlackBuild "./jdk-${VERSION}_linux-x64_bin.tar.gz"