2006-02-23 16:26:10 +01:00
|
|
|
# Description: Java 2 Software Development Kit
|
|
|
|
# URL: http://java.sun.com
|
2009-04-16 10:51:45 +02:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
# Packager: Simone Rota, sip at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2006-10-07 18:11:13 +02:00
|
|
|
name=jdk
|
2011-12-20 11:55:59 +01:00
|
|
|
version=1.7.2
|
2011-02-17 00:37:54 +01:00
|
|
|
release=1
|
2011-12-20 11:55:59 +01:00
|
|
|
source=(http://download.oracle.com/otn-pub/java/$name/7u2-b13/$name-7u2-linux-i586.tar.gz)
|
2006-02-23 16:26:10 +01:00
|
|
|
|
|
|
|
build(){
|
2011-08-30 12:14:42 +02:00
|
|
|
rm -rf $SRC/jdk*/{man/ja,jre/lib/javaws/messages_,demo,sample}*
|
|
|
|
rm -rf $SRC/jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
|
|
|
|
rm -rf $SRC/jdk*/jre/plugin/i386/ns7-gcc29
|
|
|
|
rm -rf $SRC/jdk*/jre/.systemPrefs
|
|
|
|
rm -rf $SRC/jdk*/{,jre/}[A-Z]*
|
2011-02-14 11:49:02 +01:00
|
|
|
|
2011-08-30 12:14:42 +02:00
|
|
|
install -d $PKG/usr/lib
|
|
|
|
mv $SRC/jdk* $PKG/usr/lib
|
|
|
|
mv $PKG/usr/lib/jdk*/man $PKG/usr
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2011-08-30 12:14:42 +02:00
|
|
|
cd $PKG/usr/lib
|
2006-02-23 16:26:10 +01:00
|
|
|
export GLOBIGNORE="*/src.zip"
|
|
|
|
for i in jdk*/* jdk*/jre/*; do
|
|
|
|
test -f $i && rm -rf $i;
|
|
|
|
done
|
|
|
|
|
2011-08-30 12:14:42 +02:00
|
|
|
ln -s jdk* $PKG/usr/lib/java
|
2006-02-23 16:26:10 +01:00
|
|
|
|
2006-08-03 14:47:01 +02:00
|
|
|
# generate classes.jsa
|
2011-08-30 12:14:42 +02:00
|
|
|
cd $PKG/usr/lib/java
|
2009-04-16 10:51:45 +02:00
|
|
|
./bin/java -server -Xshare:dump
|
|
|
|
./bin/java -client -Xshare:dump
|
2006-08-03 14:47:01 +02:00
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
2006-05-16 02:23:12 +02:00
|
|
|
for j in java javac javah javap javaws jar keytool; do
|
2006-02-23 16:26:10 +01:00
|
|
|
ln -s ../lib/java/bin/$j
|
|
|
|
done
|
|
|
|
}
|