From b89d8d30364b4da5c1ab9e75eb506f7f98196f05 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 23 Feb 2024 14:43:22 +0100 Subject: [PATCH] [d/openjdk] wrap Slackware's script --- d/openjdk/SlackBuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 d/openjdk/SlackBuild 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"