updated on Wed Jan 11 04:01:16 UTC 2012
[aur-mirror.git] / jre5 / PKGBUILD
blob8a1098878b0b6c9dd8d53817368f42381ad753e8
1 # $Id: PKGBUILD 9527 2010-01-26 21:43:38Z ibiru $
2 # Maintainer: Jason Chu <jason@archlinux.org>
4 pkgname=jre5
5 pkgver=5.0u22
6 pkgrel=1
7 pkgdesc="Sun's java runtime environment"
8 arch=('i686' 'x86_64')
9   [ "$CARCH" = "i686" ]   && _arch=i586
10   [ "$CARCH" = "x86_64" ] && _arch=amd64
11 url="http://java.sun.com"
12 depends=('glibc' 'libxtst')
13 install="jre.install"
14 source=(http://download.java.net/dlj/binaries/jdk-$pkgver-dlj-linux-$_arch.bin
15         https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
16         jre.profile)
17 [ "$CARCH" = "i686" ]   && md5sums=('38ebeb49b85668b56305409db2e2eb6a'
18                                     '94065b612df0046d9ae758943f9f6a75'
19                                     '50b4f5ac4129097461d246645d73a622')
20 [ "$CARCH" = "x86_64" ] && md5sums=('d70398b2d6c1bd764330b7a3276c1e41'
21                                     '94065b612df0046d9ae758943f9f6a75'
22                                     '50b4f5ac4129097461d246645d73a622')
23 license=('custom')
25 build() {
26   cd $srcdir
28   mkdir unbundle-jdk
29   cd unbundle-jdk
31   sh ../jdk-$pkgver-dlj-linux-$_arch.bin --accept-license
33   cd ..
35   sh construct.sh unbundle-jdk linux-jdk linux-jre
37   mkdir -p $pkgdir/opt/java5
38   mv linux-jdk/jre $pkgdir/opt/java5
40   install -D -m755 $srcdir/jre.profile $pkgdir/etc/profile.d/${pkgname}.sh
42   mkdir -p $pkgdir/usr/lib/mozilla/plugins
44   mkdir -p $pkgdir/usr/share/licenses/jre5
45   cp $pkgdir/opt/java5/jre/COPYRIGHT $pkgdir/usr/share/licenses/jre5
46   cp $pkgdir/opt/java5/jre/LICENSE $pkgdir/usr/share/licenses/jre5
47   cp $pkgdir/opt/java5/jre/THIRDPARTYLICENSEREADME.txt $pkgdir/usr/share/licenses/jre5