[d/openjdk] wrap Slackware's script

This commit is contained in:
Gwenhael Le Moine 2024-02-23 14:43:22 +01:00
parent 01d628d15c
commit b89d8d3036
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

21
d/openjdk/SlackBuild Executable file
View file

@ -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"