43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
# Description: Java 2 Software Development Kit
|
|
# URL: http://java.sun.com
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
# Packager: Simone Rota, sip at crux dot nu
|
|
|
|
name=jdk
|
|
version=1.6.0_16
|
|
release=1
|
|
source=(http://download.java.net/dlj/binaries/jdk-6u16-dlj-linux-i586.bin)
|
|
|
|
build(){
|
|
mkdir -p $PKG/usr/lib; cd $PKG/usr/lib
|
|
sh $SRC/jdk-*.bin --accept-license --unpack
|
|
|
|
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
|
|
|
|
# generate classes.jsa
|
|
cd java
|
|
./bin/java -server -Xshare:dump
|
|
./bin/java -client -Xshare:dump
|
|
cd ..
|
|
|
|
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
|
for j in java javac javah javap javaws jar keytool; do
|
|
ln -s ../lib/java/bin/$j
|
|
done
|
|
|
|
# fix for xcb assertions
|
|
sed -i 's/XINERAMA/FAKEEXTN/g' \
|
|
$PKG/usr/lib/java/jre/lib/i386/xawt/libmawt.so
|
|
}
|
|
|