updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / jrockit-jdk / PKGBUILD
blob1e39ab20ea648e18bb5babf2dddf31bfe209f264
1 # Original Contributor: AqD <aquila.deus@gmail.com>
2 # Contributor: Ignacio Galmarino <igalmarino@gmail.com>
4 pkgname=jrockit-jdk
5 pkgver=1.6.0_26
6 filever=R28.1.4-4.0.1
7 pkgrel=2
8 pkgdesc="JRockit is a high performace JVM"
9 url="http://www.oracle.com/technetwork/middleware/jrockit/"
10 depends=('alsa-lib' 'unixodbc' 'libxtst' 'gtk2')
11 replaces=('jdk' 'j2sdk' 'java-environment' 'j2re' 'java-runtime' 'jre')
12 provides=('jdk=6' 'j2sdk' 'java-environment' 'j2re' 'java-runtime' 'jre=6')
13 license=('custom')
14 arch=('i686' 'x86_64')
15 install=${pkgname}.install
16 options=(!strip !zipman)
18 source=(
19         installer.bin::http://download.oracle.com/otn/bea/jrockit/jrockit-jdk1.6.0_26-R28.1.4-4.0.1-linux-x64.bin
20         license.html
21         ${pkgname}.profile
22         silent.xml
25 md5sums=(
26         '39b92834e1ed029425cd68706dd5f914'
27         '9212c2dbe1fefa6cea5163497661d704'
28         '83556c506af39ae5956a0713b9bd98cc'
29         'cb117b969a643a2ed7b9f10d5afba44c'
32 if test "$CARCH" == i686; then
33         source[0]=installer.bin::http://download.oracle.com/otn/bea/jrockit/jrockit-jdk1.6.0_26-R28.1.4-4.0.1-linux-ia32.bin
34         md5sums[0]=`md5sum installer.bin`
37 build() {
38         mkdir -p $startdir/pkg/opt/java
39         cd $pkgdir/opt/java
40         chmod 755 $startdir/src/installer.bin
41         $srcdir/installer.bin -mode=silent -silent_xml=$startdir/src/silent.xml || return 1
42         mkdir -p $pkgdir/usr/bin
43         cd $pkgdir/usr/bin
44         for b in `ls -1 ../../opt/java/bin/`; do ln -sf "../../opt/java/bin/$b"; done;
45         cd $startdir/src
46         install -D -m755 ${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
47         install -D -m 644 $startdir/src/license.html $startdir/pkg/usr/share/licenses/$pkgname/license.html