updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / jdk5 / PKGBUILD
blob885aca16fe86803b9cf267bfe02cf7e3f942fe06
1 # Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
2 # Previous Maintainer: Jason Chu <jason@archlinux.org>
3 pkgname=jdk5
4 pkgver=5.0u22
5 pkgrel=1
6 pkgdesc="Sun's Java Development Kit"
7 arch=('i686' 'x86_64')
8   [ "${CARCH}" = "i686" ]   && ARCH=i586
9   [ "${CARCH}" = "x86_64" ] && ARCH=amd64
10 url="http://java.sun.com"
11 depends=('glibc' 'jre5')
12 install="jdk.install"
13 source=(http://download.java.net/dlj/binaries/jdk-${pkgver}-dlj-linux-${ARCH}.bin
14         https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
15         jdk.profile)
16 [ "$CARCH" = "i686" ]   && md5sums=('38ebeb49b85668b56305409db2e2eb6a'
17                                     '94065b612df0046d9ae758943f9f6a75'
18                                     '7aaac9ec3e440b92361c6561ac00424a')
19 [ "$CARCH" = "x86_64" ] && md5sums=('d70398b2d6c1bd764330b7a3276c1e41'
20                                     '94065b612df0046d9ae758943f9f6a75'
21                                     '7aaac9ec3e440b92361c6561ac00424a')
22 license=('custom')
24 build() {
25   cd $srcdir
27   mkdir unbundle-jdk
28   cd unbundle-jdk
29   
30   sh ../jdk-${pkgver}-dlj-linux-${ARCH}.bin --accept-license
32   cd ..
34   sh construct.sh unbundle-jdk linux-jdk linux-jre
36   #copy icon
37   install -Dm644 $srcdir/linux-jdk/jre/lib/desktop/icons/hicolor/48x48/apps/sun-java.png $pkgdir/usr/share/pixmaps/java5.png
39   rm -rf linux-jdk/jre
41   mkdir -p $pkgdir/opt
42   mv linux-jdk $pkgdir/opt/java5
44   install -D -m755 $srcdir/jdk.profile $pkgdir/etc/profile.d/${pkgname}.sh
46   mkdir -p $pkgdir/usr/share/licenses/jdk5
47   cp $pkgdir/opt/java5/COPYRIGHT $pkgdir/usr/share/licenses/jdk5
48   cp $pkgdir/opt/java5/LICENSE $pkgdir/usr/share/licenses/jdk5
49   cp $pkgdir/opt/java5/THIRDPARTYLICENSEREADME.txt $pkgdir/usr/share/licenses/jdk5
51   #desktop entries
52   install -Dm644 $startdir/java-control-panel.desktop ${pkgdir}/usr/share/applications/java5-control-panel.desktop
53   install -Dm644 $startdir/java-monitoring-and-management-console.desktop  ${pkgdir}/usr/share/applications/java5-monitoring-and-management-console.desktop
54   install -Dm644 $startdir/java-policy-settings.desktop ${pkgdir}/usr/share/applications/java5-policy-settings.desktop
55   install -Dm644 $startdir/java-visualvm.desktop ${pkgdir}/usr/share/applications/java5-visualvm.desktop
56   install -Dm644 $startdir/java-web-start.desktop ${pkgdir}/usr/share/applications/java5-web-start.desktop
58 #  jdk-5.0u22-dlj-linux-amd64.bin