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
10 source=(file:///$name-8u${version##*_}-linux-arm32-vfp-hflt.tar.gz)
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]*
17 install -d $PKG/usr/{lib,share}
18 mv $SRC/jdk* $PKG/usr/lib/$name
19 mv $PKG/usr/lib/jdk*/man $PKG/usr/share/
22 export GLOBIGNORE="*/src.zip"
23 for i in jdk/* jdk/jre/*; do
24 test -f $i && rm -rf $i;
27 ln -s $name $PKG/usr/lib/java
29 # generate classes.jsa
31 ./bin/java -server -Xshare:dump
32 ./bin/java -client -Xshare:dump
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