2006-03-26 23:19:40 +00:00
|
|
|
# Maintainer: Jay Dolan, jdolan at jdolan dot dyndns dot org
|
2006-02-23 15:26:10 +00:00
|
|
|
# Description: Java 2 Software Development Kit
|
|
|
|
# URL: http://java.sun.com
|
|
|
|
|
|
|
|
name=j2sdk
|
2006-06-02 12:05:05 +00:00
|
|
|
version=1.5.0_07
|
2006-05-16 00:23:12 +00:00
|
|
|
release=1
|
2006-08-03 12:47:01 +00:00
|
|
|
source=(http://download.java.net/dlj/binaries/jdk-1_5_0_07-distro-linux-i586.bin)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build(){
|
|
|
|
mkdir -p $PKG/usr/lib; cd $PKG/usr/lib
|
2006-08-03 12:47:01 +00:00
|
|
|
sh $SRC/jdk-*.bin --accept-license --unpack
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
export GLOBIGNORE="*/man1"
|
|
|
|
rm -rf jdk*/{man/,jre/lib/javaws/messages_,demo,sample}*
|
|
|
|
rm -rf jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
|
|
|
|
rm -rf jdk*/jre/plugin/i386/ns7-gcc29
|
|
|
|
|
|
|
|
export GLOBIGNORE="*/src.zip"
|
|
|
|
for i in jdk*/* jdk*/jre/*; do
|
|
|
|
test -f $i && rm -rf $i;
|
|
|
|
done
|
|
|
|
|
|
|
|
ln -s jdk* java
|
|
|
|
|
2006-08-03 12:47:01 +00:00
|
|
|
# generate classes.jsa
|
|
|
|
(cd java; ./bin/java -Xshare:dump)
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
2006-05-16 00:23:12 +00:00
|
|
|
for j in java javac javah javap javaws jar keytool; do
|
2006-02-23 15:26:10 +00:00
|
|
|
ln -s ../lib/java/bin/$j
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|