[d/openjdk] wrap Slackware's script
This commit is contained in:
parent
01d628d15c
commit
b89d8d3036
1 changed files with 21 additions and 0 deletions
21
d/openjdk/SlackBuild
Executable file
21
d/openjdk/SlackBuild
Executable 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"
|
Loading…
Reference in a new issue