Commit 04807d84 authored by Anke's avatar Anke
Browse files

jdk updated

parent cfa1f4e8
......@@ -8,18 +8,19 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=jdk
pkgver=6u24
pkgver=6u25
pkgrel=1
pkgdesc="Sun's Java Development Kit"
arch=('i686' 'x86_64')
[ "${CARCH}" = "i686" ] && ARCH=i586
[ "${CARCH}" = "x86_64" ] && ARCH=amd64
[ "${CARCH}" = "x86_64" ] && ARCH=x64
url="http://java.sun.com"
depends=('glibc' 'jre')
install="jdk.install"
source=(http://download.java.net/dlj/binaries/jdk-${pkgver}-dlj-linux-${ARCH}.bin
source=(http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-${pkgver}-linux-${ARCH}.bin
https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
jdk.profile
jdk.profile.csh
java-control-panel.desktop
java-monitoring-and-management-console.desktop
java-policy-settings.desktop
......@@ -28,14 +29,16 @@ source=(http://download.java.net/dlj/binaries/jdk-${pkgver}-dlj-linux-${ARCH}.bi
[ "$CARCH" = "i686" ] && md5sums=('3acbe2368cfb5149b04f980184331e33'
'94065b612df0046d9ae758943f9f6a75'
'7aaac9ec3e440b92361c6561ac00424a'
'6f4cbf332816d2c4e9578ecd1d0dce7f'
'e4d814c0f310d77ed6990c731bccd0fb'
'4bc2b0be93f76ed07b471e3c89eb5a8a'
'8e3cec7ab641ec449cabd068be583f5c'
'9ba148ebabce8ed3351b813a9a66b6e5'
'568451cf45fc8c7adb83a222a61ca2c6')
[ "$CARCH" = "x86_64" ] && md5sums=('51a388560b0125456d982cdab1ad4fdd'
[ "$CARCH" = "x86_64" ] && md5sums=('763f15de48f53cde3caeaa70e191848e'
'94065b612df0046d9ae758943f9f6a75'
'7aaac9ec3e440b92361c6561ac00424a'
'6f4cbf332816d2c4e9578ecd1d0dce7f'
'e4d814c0f310d77ed6990c731bccd0fb'
'4bc2b0be93f76ed07b471e3c89eb5a8a'
'8e3cec7ab641ec449cabd068be583f5c'
......@@ -52,7 +55,7 @@ build() {
mkdir unbundle-jdk
cd unbundle-jdk
sh ../jdk-${pkgver}-dlj-linux-${ARCH}.bin --accept-license
sh ../jdk-${pkgver}-linux-${ARCH}.bin --accept-license
cd ..
......@@ -66,16 +69,21 @@ package() {
install -Dm644 ${srcdir}/linux-jdk/jre/lib/desktop/icons/hicolor/48x48/apps/sun-java.png ${pkgdir}/usr/share/pixmaps/java.png
rm -rf linux-jdk/jre
install -d ${pkgdir}/opt
mv linux-jdk ${pkgdir}/opt/java
mkdir -p ${pkgdir}/opt
mv linux-jdk ${pkgdir}/opt/java
install -D ${srcdir}/jdk.profile \
${pkgdir}/etc/profile.d/jdk.sh
install -D ${srcdir}/jdk.profile.csh \
${pkgdir}/etc/profile.d/jdk.csh
install -D -m755 ${srcdir}/${pkgname}.profile ${pkgdir}/etc/profile.d/${pkgname}.sh
mkdir -p ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/COPYRIGHT ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/LICENSE ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/jdk
install -d ${pkgdir}/usr/share/licenses/jdk
install -m644 ${pkgdir}/opt/java/COPYRIGHT \
${pkgdir}/usr/share/licenses/jdk
install -m644 ${pkgdir}/opt/java/LICENSE \
${pkgdir}/usr/share/licenses/jdk
install -m644 ${pkgdir}/opt/java/THIRDPARTYLICENSEREADME.txt \
${pkgdir}/usr/share/licenses/jdk
#desktop entries
install -Dm644 ${srcdir}/java-control-panel.desktop ${pkgdir}/usr/share/applications/java-control-panel.desktop
......
setenv J2SDKDIR /opt/java
setenv PATH ${PATH}:/opt/java/bin:/opt/java/db/bin
setenv JAVA_HOME /opt/java
setenv DERBY_HOME /opt/java/db
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment