CRUX-ARM : Home

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