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
|
|
|
|
|
|
|
|
# Please download the source files from http://java.sun.com after
|
|
|
|
# accepting the license terms, and place them in this directory.
|
|
|
|
|
|
|
|
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
|
|
|
|
source=(file:///jdk-${version//./_}-linux-i586.bin)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build(){
|
|
|
|
sed -i 's|more <<"EOF"|cat <<"EOF"|' jdk-*.bin
|
|
|
|
mkdir -p $PKG/usr/lib; cd $PKG/usr/lib
|
|
|
|
yes | sh $SRC/jdk-*.bin
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|