opt/j2sdk/Pkgfile

36 lines
918 B
Plaintext
Raw Normal View History

# Maintainer: Jay Dolan, jdolan at jdolan dot dyndns dot org
2006-02-23 16:26:10 +01: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
version=1.5.0_07
2006-05-16 02:23:12 +02:00
release=1
source=(file:///jdk-${version//./_}-linux-i586.bin)
2006-02-23 16:26:10 +01: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 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
}