Commit | Line | Data |
---|---|---|
92418026 JB |
1 | # Description: Java 2 Software Development Kit |
2 | # URL: http://java.sun.com | |
3 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu | |
4 | # Maintainer: Jose V Beneyto, sepen at crux dot nu | |
5 | # Packager: Simone Rota, sip at crux dot nu | |
6 | ||
7 | name=jdk | |
69cd25b1 | 8 | version=1.8.0_60 |
92418026 | 9 | release=1 |
69cd25b1 | 10 | source=(file:///$name-8u${version##*_}-linux-arm32-vfp-hflt.tar.gz) |
92418026 JB |
11 | |
12 | build(){ | |
13 | rm -rf $SRC/jdk*/{man/ja,jre/lib/{locale,deploy/messages_},db/lib/derbyLocale*}* | |
14 | rm -rf $SRC/jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.* | |
15 | rm -rf $SRC/jdk*/{,jre/}[A-Z]* | |
16 | ||
17 | install -d $PKG/usr/lib | |
18 | mv $SRC/jdk* $PKG/usr/lib/$name | |
19 | mv $PKG/usr/lib/jdk*/man $PKG/usr | |
20 | ||
21 | cd $PKG/usr/lib | |
22 | export GLOBIGNORE="*/src.zip" | |
23 | for i in jdk/* jdk/jre/*; do | |
24 | test -f $i && rm -rf $i; | |
25 | done | |
26 | ||
27 | ln -s $name $PKG/usr/lib/java | |
28 | ||
29 | # generate classes.jsa | |
30 | cd $PKG/usr/lib/java | |
31 | ./bin/java -server -Xshare:dump | |
32 | ./bin/java -client -Xshare:dump | |
33 | ||
34 | mkdir -p $PKG/usr/bin && cd $PKG/usr/bin | |
35 | for j in java javac javah javap javaws jar keytool; do | |
36 | ln -s ../lib/java/bin/$j | |
37 | done | |
38 | } |