40 lines
1.0 KiB
Plaintext
40 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.7.0_03
|
|
release=1
|
|
source=(http://download.oracle.com/otn-pub/java/$name/7u3-b04/$name-7u3-linux-i586.tar.gz)
|
|
|
|
build(){
|
|
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]*
|
|
|
|
install -d $PKG/usr/lib
|
|
mv $SRC/jdk* $PKG/usr/lib
|
|
mv $PKG/usr/lib/jdk*/man $PKG/usr
|
|
|
|
cd $PKG/usr/lib
|
|
export GLOBIGNORE="*/src.zip"
|
|
for i in jdk*/* jdk*/jre/*; do
|
|
test -f $i && rm -rf $i;
|
|
done
|
|
|
|
ln -s jdk* $PKG/usr/lib/java
|
|
|
|
# generate classes.jsa
|
|
cd $PKG/usr/lib/java
|
|
./bin/java -server -Xshare:dump
|
|
./bin/java -client -Xshare:dump
|
|
|
|
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
|
|
}
|