blob: 700d850315614faab387b3e08c1f4eba0ab6889b (
plain)
1 # Description: Java 2 Runtime Kit
2 # URL: http://java.sun.com
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Packager: Simone Rota, sip at crux dot nu
5
6 name=jre
7 version=1.6.0_22
8 release=1
9 source=(http://download.java.net/dlj/binaries/jdk-6u22-dlj-linux-i586.bin)
10
11 build(){
12 sh $SRC/jdk-*.bin --accept-license --unpack
13
14 cd jdk$version
15
16 install -d $PKG/usr/{bin,lib}
17 mv jre $PKG/usr/lib/jre$version
18 ln -s jre$version $PKG/usr/lib/java
19 ln -s ../lib/java/bin/java $PKG/usr/bin/java
20 ln -s ../lib/java/bin/javaws $PKG/usr/bin/javaws
21 ln -s ../lib/java/bin/keytool $PKG/usr/bin/keytool
22
23 rm $PKG/usr/lib/jre$version/[A-Z]*
24 }
|