5 pkgdesc="Sun's java runtime environment"
7 [ "$CARCH" = "i686" ] && _arch=i586
8 [ "$CARCH" = "x86_64" ] && _arch=amd64
9 url="http://java.sun.com"
10 depends=('glibc' 'libxtst')
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
15 [ "$CARCH" = "i686" ] && md5sums=('38ebeb49b85668b56305409db2e2eb6a'
16 '94065b612df0046d9ae758943f9f6a75'
17 '50b4f5ac4129097461d246645d73a622')
18 [ "$CARCH" = "x86_64" ] && md5sums=('d70398b2d6c1bd764330b7a3276c1e41'
19 '94065b612df0046d9ae758943f9f6a75'
20 '50b4f5ac4129097461d246645d73a622')
25 md5sums+=('7f5204aab6eb03c102e1b02384a5bf21')
33 sh ../jdk-$pkgver-dlj-linux-$_arch.bin --accept-license
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