updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / jre5-opt / PKGBUILD
blob44f950a31f2f60e61ca4a751adae6178c3f5fe92
1 pkgname=jre5-opt
2 _pkgname=jre5
3 pkgver=5.0u22
4 pkgrel=1
5 pkgdesc="Sun's java runtime environment"
6 arch=('i686' 'x86_64')
7   [ "$CARCH" = "i686" ]   && _arch=i586
8   [ "$CARCH" = "x86_64" ] && _arch=amd64
9 url="http://java.sun.com"
10 depends=('glibc' 'libxtst')
11 install="jre.install"
12 source=(http://download.java.net/dlj/binaries/jdk-$pkgver-dlj-linux-$_arch.bin
13         https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
14         jre.profile)
15 [ "$CARCH" = "i686" ]   && md5sums=('38ebeb49b85668b56305409db2e2eb6a'
16                                     '94065b612df0046d9ae758943f9f6a75'
17                                     '50b4f5ac4129097461d246645d73a622')
18 [ "$CARCH" = "x86_64" ] && md5sums=('d70398b2d6c1bd764330b7a3276c1e41'
19                                     '94065b612df0046d9ae758943f9f6a75'
20                                     '50b4f5ac4129097461d246645d73a622')
21 license=('custom')
23 conflicts=(jre5)
24 source+=(usejava.sh)
25 md5sums+=('7f5204aab6eb03c102e1b02384a5bf21')
27 build() {
28   cd $srcdir
30   mkdir unbundle-jdk
31   cd unbundle-jdk
33   sh ../jdk-$pkgver-dlj-linux-$_arch.bin --accept-license
35   cd ..
37   sh construct.sh unbundle-jdk linux-jdk linux-jre
39   mkdir -p $pkgdir/opt/java5
40   mv linux-jdk/jre $pkgdir/opt/java5
42   #install -D -m755 $srcdir/jre.profile $pkgdir/etc/profile.d/${_pkgname}.sh
43   install -D -m644 $srcdir/usejava.sh $pkgdir/opt/java5/jre/bin/usejava.sh
45   #mkdir -p $pkgdir/usr/lib/mozilla/plugins
47   mkdir -p $pkgdir/usr/share/licenses/jre5
48   cp $pkgdir/opt/java5/jre/COPYRIGHT $pkgdir/usr/share/licenses/jre5
49   cp $pkgdir/opt/java5/jre/LICENSE $pkgdir/usr/share/licenses/jre5
50   cp $pkgdir/opt/java5/jre/THIRDPARTYLICENSEREADME.txt $pkgdir/usr/share/licenses/jre5