2019-04-21 14:07:40 +02:00
|
|
|
# Description: Java 8 Software Development Kit (amazon-corretto)
|
2021-04-23 15:00:15 +02:00
|
|
|
# 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
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2020-09-25 08:38:04 +00:00
|
|
|
name=jdk8-bin
|
2022-04-19 18:58:09 +02:00
|
|
|
version=8.332.08.1
|
2021-01-20 11:41:44 +01:00
|
|
|
release=1
|
2019-12-23 15:24:18 +01:00
|
|
|
source=(https://corretto.aws/downloads/resources/$version/amazon-corretto-$version-linux-x64.tar.gz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build(){
|
2021-04-23 15:00:15 +02:00
|
|
|
cd amazon-corretto-$version-linux-x64
|
2011-02-14 11:49:02 +01:00
|
|
|
|
2021-04-23 15:00:15 +02:00
|
|
|
# cleanup
|
|
|
|
rm {.,jre}/{ASSEMBLY_EXCEPTION,LICENSE,THIRD_PARTY_README}
|
|
|
|
chmod -R o-w,g-w .
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2021-04-23 15:00:15 +02:00
|
|
|
# install
|
|
|
|
install -d $PKG/usr/{bin,lib/jdk,share/man}
|
|
|
|
mv man $PKG/usr/share/
|
|
|
|
mv * $PKG/usr/lib/jdk/
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2021-04-23 15:00:15 +02:00
|
|
|
# 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
|
2006-08-03 12:47:01 +00:00
|
|
|
|
2021-04-23 15:00:15 +02:00
|
|
|
# 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/jdk8-bin
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|