2007-03-22 17:20:21 +01:00
|
|
|
# Maintainer: Simone Rota, sip at crux dot nu
|
2006-10-07 16:09:54 +00:00
|
|
|
# Description: Java 2 Software Development Kit
|
|
|
|
# URL: http://java.sun.com
|
|
|
|
|
|
|
|
name=jre
|
2008-02-14 09:37:04 +01:00
|
|
|
version=1.6.0_04
|
|
|
|
release=1
|
|
|
|
source=(http://download.java.net/dlj/binaries/jdk-6u4-dlj-linux-i586.bin)
|
2006-10-07 16:09:54 +00:00
|
|
|
|
|
|
|
build(){
|
|
|
|
sh $SRC/jdk-*.bin --accept-license --unpack
|
|
|
|
|
|
|
|
cd jdk$version
|
|
|
|
rm jre/lib/*/libsaproc.so
|
|
|
|
|
|
|
|
mkdir -p jre/man/man1
|
2006-12-12 20:48:04 +01:00
|
|
|
man=(java javaws keytool orbd policytool \
|
|
|
|
rmid rmiregistry servertool tnameserv)
|
2006-10-07 16:09:54 +00:00
|
|
|
for f in ${man[@]}; do
|
|
|
|
cp man/man1/$f.1 jre/man/man1
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib
|
|
|
|
mv jre $PKG/usr/lib/jre$version
|
|
|
|
cd $PKG/usr/lib
|
|
|
|
ln -s jre* java
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
|
|
|
for j in java javaws keytool; do
|
|
|
|
ln -s ../lib/java/bin/$j
|
|
|
|
done
|
2007-11-29 20:47:49 +01:00
|
|
|
|
|
|
|
# fix for xcb assertions
|
|
|
|
sed -i 's/XINERAMA/FAKEEXTN/g' \
|
|
|
|
$PKG/usr/lib/java/lib/i386/xawt/libmawt.so
|
2006-10-07 16:09:54 +00:00
|
|
|
}
|
|
|
|
|