2009-03-21 09:37:17 +01:00
|
|
|
# Description: Java 2 Runtime Kit
|
|
|
|
# URL: http://java.sun.com
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Packager: Simone Rota, sip at crux dot nu
|
2006-10-07 18:09:54 +02:00
|
|
|
|
|
|
|
name=jre
|
2010-01-14 16:39:42 +01:00
|
|
|
version=1.6.0_18
|
2008-02-14 09:37:04 +01:00
|
|
|
release=1
|
2010-01-14 16:39:42 +01:00
|
|
|
source=(http://download.java.net/dlj/binaries/jdk-6u18-dlj-linux-i586.bin)
|
2006-10-07 18:09:54 +02:00
|
|
|
|
|
|
|
build(){
|
2009-03-21 09:37:17 +01:00
|
|
|
sh $SRC/jdk-*.bin --accept-license --unpack
|
2006-10-07 18:09:54 +02:00
|
|
|
|
2009-03-21 09:37:17 +01:00
|
|
|
cd jdk$version
|
2006-10-07 18:09:54 +02:00
|
|
|
|
2009-03-21 09:37:17 +01:00
|
|
|
install -d $PKG/usr/{bin,lib} jre/man/man1
|
|
|
|
install -m 644 man/man1/{java,javaws,keytool,orbd,rmid,rmiregistry}.1 jre/man/man1
|
|
|
|
install -m 644 man/man1/{servertool,policytool,tnameserv,unpack200}.1 jre/man/man1
|
|
|
|
mv jre $PKG/usr/lib/jre$version
|
2006-10-07 18:09:54 +02:00
|
|
|
|
2009-03-21 09:37:17 +01:00
|
|
|
ln -s jre$version $PKG/usr/lib/java
|
|
|
|
ln -s ../lib/java/bin/java $PKG/usr/bin/java
|
|
|
|
ln -s ../lib/java/bin/javaws $PKG/usr/bin/javaws
|
|
|
|
ln -s ../lib/java/bin/keytool $PKG/usr/bin/keytool
|
2006-10-07 18:09:54 +02:00
|
|
|
|
2009-03-21 09:37:17 +01:00
|
|
|
rm $PKG/usr/lib/jre$version/[A-Z]*
|
2006-10-07 18:09:54 +02:00
|
|
|
}
|
|
|
|
|