CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
328146deb9401976e2c88bae19f75c7b8ad1712b
[ports/opt-arm.git] / jdk / Pkgfile
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
8 version=1.7.0_51
9 release=1
10 source=(file:///$name-7u${version##*_}-linux-arm-vfp-hflt.tar.gz)
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 }