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 16:09:54 +00:00
|
|
|
|
|
|
|
name=jre
|
2009-06-03 09:30:36 +02:00
|
|
|
version=1.6.0_14
|
2008-02-14 09:37:04 +01:00
|
|
|
release=1
|
2009-06-03 09:30:36 +02:00
|
|
|
source=(http://download.java.net/dlj/binaries/jdk-6u14-dlj-linux-i586.bin)
|
2006-10-07 16:09:54 +00:00
|
|
|
|
|
|
|
build(){
|
2009-03-21 09:37:17 +01:00
|
|
|
sh $SRC/jdk-*.bin --accept-license --unpack
|
2006-10-07 16:09:54 +00:00
|
|
|
|
2009-03-21 09:37:17 +01:00
|
|
|
cd jdk$version
|
2006-10-07 16:09:54 +00: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 16:09:54 +00: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 16:09:54 +00:00
|
|
|
|
2009-03-21 09:37:17 +01:00
|
|
|
rm $PKG/usr/lib/jre$version/[A-Z]*
|
2006-10-07 16:09:54 +00:00
|
|
|
}
|
|
|
|
|