1 # Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
2 # Previous Maintainer: Jason Chu <jason@archlinux.org>
6 pkgdesc="Sun's Java Development Kit"
8 [ "${CARCH}" = "i686" ] && ARCH=i586
9 [ "${CARCH}" = "x86_64" ] && ARCH=amd64
10 url="http://java.sun.com"
11 depends=('glibc' 'jre5')
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
16 [ "$CARCH" = "i686" ] && md5sums=('38ebeb49b85668b56305409db2e2eb6a'
17 '94065b612df0046d9ae758943f9f6a75'
18 '7aaac9ec3e440b92361c6561ac00424a')
19 [ "$CARCH" = "x86_64" ] && md5sums=('d70398b2d6c1bd764330b7a3276c1e41'
20 '94065b612df0046d9ae758943f9f6a75'
21 '7aaac9ec3e440b92361c6561ac00424a')
30 sh ../jdk-${pkgver}-dlj-linux-${ARCH}.bin --accept-license
34 sh construct.sh unbundle-jdk linux-jdk linux-jre
37 install -Dm644 $srcdir/linux-jdk/jre/lib/desktop/icons/hicolor/48x48/apps/sun-java.png $pkgdir/usr/share/pixmaps/java5.png
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
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