blob: bd52d27fb9d3dc13c8bfe9c6ad309da514f9b2a1 (
plain)
1 # Description: Java 8 Software Development Kit (amazon-corretto)
2 # URL: https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/what-is-corretto-8.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: util-linux gtk alsa-lib
5
6 name=jdk
7 version=8.212.04.2
8 release=1
9 source=(https://d3pxv6yz143wms.cloudfront.net/$version/java-1.8.0-amazon-corretto-devel-1.8.0_212.b04-2.x86_64.rpm)
10
11 build(){
12 cd $SRC/usr/lib/jvm/java-1.8.0-amazon-corretto
13
14 # cleanup
15 rm {.,jre}/{ASSEMBLY_EXCEPTION,LICENSE,THIRD_PARTY_README}
16 chmod -R o-w,g-w .
17
18 # install
19 install -d $PKG/usr/{bin,lib/jdk,share/man}
20 mv man $PKG/usr/share/
21 mv * $PKG/usr/lib/jdk/
22
23 # symlinks
24 ln -s jdk $PKG/usr/lib/java
25 ln -s ../lib/jdk/bin/java $PKG/usr/bin/java
26 ln -s ../lib/jdk/bin/javac $PKG/usr/bin/javac
27 ln -s ../lib/jdk/bin/javah $PKG/usr/bin/javah
28 ln -s ../lib/jdk/bin/javap $PKG/usr/bin/javap
29 ln -s ../lib/jdk/bin/jar $PKG/usr/bin/jar
30 ln -s ../lib/jdk/bin/keytool $PKG/usr/bin/keytool
31
32 # revdep
33 install -d $PKG/etc/revdep.d
34 printf '%s\n%s\n%s\n' /usr/lib/jdk/{lib/amd64,jre/lib/amd64{,/server}} > $PKG/etc/revdep.d/jdk
35 }
|