jdk: update to 1.8.0_212, use Amazon Corretto
This commit is contained in:
parent
84ce92e17e
commit
3e92d01499
1445
jdk/.footprint
1445
jdk/.footprint
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/d4jQ0yEOGcYEKMmuC10IIreBruLXSYUJxbmdeT0XuT49nkHBH/lHx2BxiLVGu8pZTuBBk+3Wu0t1y7tsVN3mQs=
|
||||
SHA256 (Pkgfile) = ca72302c88035ca6780c5f813f1bb3d5bea2072d1ddd321b49d5eb98e87eab59
|
||||
SHA256 (.footprint) = 6c3931fa50b11969b26b1329cd0a23ca858bb7835bbe55d7d0161817a099253b
|
||||
SHA256 (jdk-8u202-linux-x64.tar.gz) = 9a5c32411a6a06e22b69c495b7975034409fa1652d03aeb8eb5b6f59fd4594e0
|
||||
RWSE3ohX2g5d/YBmubACjxA1SJ5QcdqBkwmpThoPpg7sf5qmNua3+hvUXRv08oAxVWcaUXNneIYslR6YsOdDhwm23gQXUJhrTA0=
|
||||
SHA256 (Pkgfile) = 4e9795f0f8390f337053f3a6bd9a403e01da22ccab4da02b0cd5471cec13037b
|
||||
SHA256 (.footprint) = 5df85afd82112ca87b7dab8e19d430ec9a54e143ca21fd492c0b255f59ba4b2b
|
||||
SHA256 (java-1.8.0-amazon-corretto-devel-1.8.0_212.b04-1.x86_64.rpm) = be177402b4117524d880a5fe7787f8f300b9c3c4c350e3143bcbeda863fba30e
|
||||
|
49
jdk/Pkgfile
49
jdk/Pkgfile
@ -1,37 +1,32 @@
|
||||
# Description: Java 8 Software Development Kit
|
||||
# URL: http://java.sun.com
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
# Depends on: util-linux gtk3 gtk alsa-lib
|
||||
# Description: Java 8 Software Development Kit (amazon-corretto)
|
||||
# URL: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/what-is-corretto-8.html
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
# Depends on: util-linux gtk alsa-lib
|
||||
|
||||
name=jdk
|
||||
version=1.8.0_202
|
||||
version=8.212.04.1
|
||||
release=1
|
||||
source=(file:///$name-8u${version##*_}-linux-x64.tar.gz)
|
||||
source=(https://d3pxv6yz143wms.cloudfront.net/$version/java-1.8.0-amazon-corretto-devel-1.8.0_212.b04-1.x86_64.rpm)
|
||||
|
||||
build(){
|
||||
rm -rf $SRC/jdk*/{man/ja,jre/lib/{locale,deploy/messages_},db/lib/derbyLocale*}*
|
||||
rm -rf $SRC/jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
|
||||
rm -rf $SRC/jdk*/{,jre/}[A-Z]*
|
||||
cd $SRC/usr/lib/jvm/java-1.8.0-amazon-corretto
|
||||
|
||||
install -d $PKG/usr/{lib,share}
|
||||
mv $SRC/jdk* $PKG/usr/lib/$name
|
||||
mv $PKG/usr/lib/jdk*/man $PKG/usr/share
|
||||
install -d $PKG/usr/{bin,lib/jdk,share/man}
|
||||
|
||||
cd $PKG/usr/lib
|
||||
export GLOBIGNORE="*/src.zip"
|
||||
for i in jdk/* jdk/jre/*; do
|
||||
test -f $i && rm -rf $i;
|
||||
done
|
||||
|
||||
ln -s $name $PKG/usr/lib/java
|
||||
rm ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README
|
||||
mv man $PKG/usr/share/
|
||||
mv * $PKG/usr/lib/jdk/
|
||||
|
||||
# generate classes.jsa
|
||||
cd $PKG/usr/lib/java
|
||||
./bin/java -server -Xshare:dump
|
||||
./bin/java -client -Xshare:dump
|
||||
# symlinks
|
||||
ln -s jdk $PKG/usr/lib/java
|
||||
ln -s ../lib/jdk/bin/java $PKG/usr/bin/java
|
||||
ln -s ../lib/jdk/bin/javac $PKG/usr/bin/javac
|
||||
ln -s ../lib/jdk/bin/javah $PKG/usr/bin/javah
|
||||
ln -s ../lib/jdk/bin/javap $PKG/usr/bin/javap
|
||||
ln -s ../lib/jdk/bin/jar $PKG/usr/bin/jar
|
||||
ln -s ../lib/jdk/bin/keytool $PKG/usr/bin/keytool
|
||||
|
||||
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
||||
for j in java javac javah javap javaws jar keytool; do
|
||||
ln -s ../lib/java/bin/$j
|
||||
done
|
||||
# revdep
|
||||
install -d $PKG/etc/revdep.d
|
||||
printf '%s\n%s\n%s\n' /usr/lib/jdk/{lib/amd64,jre/lib/amd64{,/server}} > $PKG/etc/revdep.d/jdk
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user