1 # $Id: PKGBUILD 9527 2010-01-26 21:43:38Z ibiru $
2 # Maintainer: Jason Chu <jason@archlinux.org>
7 pkgdesc="Sun's java runtime environment"
9 [ "$CARCH" = "i686" ] && _arch=i586
10 [ "$CARCH" = "x86_64" ] && _arch=amd64
11 url="http://java.sun.com"
12 depends=('glibc' 'libxtst')
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
17 [ "$CARCH" = "i686" ] && md5sums=('38ebeb49b85668b56305409db2e2eb6a'
18 '94065b612df0046d9ae758943f9f6a75'
19 '50b4f5ac4129097461d246645d73a622')
20 [ "$CARCH" = "x86_64" ] && md5sums=('d70398b2d6c1bd764330b7a3276c1e41'
21 '94065b612df0046d9ae758943f9f6a75'
22 '50b4f5ac4129097461d246645d73a622')
31 sh ../jdk-$pkgver-dlj-linux-$_arch.bin --accept-license
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