blob: abdf38176f2a00f1592292d3e2c00d7d7bccbb71 (
plain)
1 # Description: Java 8 Software Development Kit
2 # URL: http://java.sun.com
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: util-linux gtk3 gtk alsa-lib
5
6 name=jdk
7 version=1.8.0_202
8 release=1
9 source=(file:///$name-8u${version##*_}-linux-x64.tar.gz)
10
11 build(){
12 rm -rf $SRC/jdk*/{man/ja,jre/lib/{locale,deploy/messages_},db/lib/derbyLocale*}*
13 rm -rf $SRC/jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
14 rm -rf $SRC/jdk*/{,jre/}[A-Z]*
15
16 install -d $PKG/usr/{lib,share}
17 mv $SRC/jdk* $PKG/usr/lib/$name
18 mv $PKG/usr/lib/jdk*/man $PKG/usr/share
19
20 cd $PKG/usr/lib
21 export GLOBIGNORE="*/src.zip"
22 for i in jdk/* jdk/jre/*; do
23 test -f $i && rm -rf $i;
24 done
25
26 ln -s $name $PKG/usr/lib/java
27
28 # generate classes.jsa
29 cd $PKG/usr/lib/java
30 ./bin/java -server -Xshare:dump
31 ./bin/java -client -Xshare:dump
32
33 mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
34 for j in java javac javah javap javaws jar keytool; do
35 ln -s ../lib/java/bin/$j
36 done
37 }
|