summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/community/jre/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-03-12 02:14:01 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-03-12 02:14:01 (GMT)
commite6667fd4e113d9846e29685ea6b5b000836db057 (patch)
tree935d0f3112562c4042f3cf3dad536a96705a9f89 /abs/extra-testing/community/jre/PKGBUILD
parent6646ad16eda9982bf9844e614a9ab8721d5c8a43 (diff)
downloadlinhes_pkgbuild-e6667fd4e113d9846e29685ea6b5b000836db057.zip
linhes_pkgbuild-e6667fd4e113d9846e29685ea6b5b000836db057.tar.gz
linhes_pkgbuild-e6667fd4e113d9846e29685ea6b5b000836db057.tar.bz2
Updated Java.
Diffstat (limited to 'abs/extra-testing/community/jre/PKGBUILD')
-rw-r--r--abs/extra-testing/community/jre/PKGBUILD65
1 files changed, 32 insertions, 33 deletions
diff --git a/abs/extra-testing/community/jre/PKGBUILD b/abs/extra-testing/community/jre/PKGBUILD
index b7ee08b..ca22f01 100644
--- a/abs/extra-testing/community/jre/PKGBUILD
+++ b/abs/extra-testing/community/jre/PKGBUILD
@@ -1,56 +1,55 @@
-# $Id: PKGBUILD,v 1.3 2008/12/03 02:33:37 gcarrier Exp $
-# Maintainer: Jason Chu <jason@archlinux.org>
-
+# Based on official Arch package by Jason Chu <jason@archlinux.org>
pkgname=jre
-pkgver=6u11
+pkgver=6u12
pkgrel=1
pkgdesc="Sun's java runtime environment"
arch=(i686 x86_64)
- [ "$CARCH" = "i686" ] && _arch=i586
- [ "$CARCH" = "x86_64" ] && _arch=amd64
+[ "$CARCH" = "i686" ] && _arch=i586
+[ "$CARCH" = "x86_64" ] && _arch=amd64
url="http://java.sun.com"
depends=('glibc' 'libstdc++5')
install="jre.install"
source=(http://download.java.net/dlj/binaries/jdk-$pkgver-dlj-linux-$_arch.bin
- https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
- jre.profile)
-[ "$CARCH" = "i686" ] && md5sums=('e5eef98bc477675c66e053fc3635e645'
- '94065b612df0046d9ae758943f9f6a75'
- '50b4f5ac4129097461d246645d73a622')
-[ "$CARCH" = "x86_64" ] && md5sums=('0f687b6dbfe54e117bb0d9e090fda20b'
- '94065b612df0046d9ae758943f9f6a75'
- '50b4f5ac4129097461d246645d73a622')
+https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
+jre.profile)
+[ "$CARCH" = "i686" ] && md5sums=('560a51cfeecc4918d01ca29abc858d52'
+'94065b612df0046d9ae758943f9f6a75'
+'50b4f5ac4129097461d246645d73a622')
+[ "$CARCH" = "x86_64" ] && md5sums=('9dce878be77b4a93337fa85b40b29069'
+'94065b612df0046d9ae758943f9f6a75'
+'50b4f5ac4129097461d246645d73a622')
replaces=('j2re')
conflicts=('j2re' 'java-runtime')
provides=('j2re' 'java-runtime')
license=('custom')
build() {
- cd $startdir/src
+ cd $startdir/src
- mkdir unbundle-jdk
- cd unbundle-jdk
+ mkdir unbundle-jdk
+ cd unbundle-jdk
- sh ../jdk-$pkgver-dlj-linux-$_arch.bin --accept-license
+ sh ../jdk-$pkgver-dlj-linux-$_arch.bin --accept-license
- cd ..
+ cd ..
- sh construct.sh unbundle-jdk linux-jdk linux-jre
+ sh construct.sh unbundle-jdk linux-jdk linux-jre
- mkdir -p $startdir/pkg/opt/java
- mv linux-jdk/jre $startdir/pkg/opt/java
+ mkdir -p $startdir/pkg/opt/java
+ mv linux-jdk/jre $startdir/pkg/opt/java
- install -D -m755 $startdir/src/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
+ install -D -m755 $startdir/src/${pkgname}.profile $startdir/pkg/etc/profile.d/${pkgname}.sh
- # no plugin for x86_64
- if [ "$CARCH" = "i686" ]; then
- mkdir -p $startdir/pkg/usr/lib/mozilla/plugins
- ln -s /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so $startdir/pkg/usr/lib/mozilla/plugins
- else echo "no plugin for x86_64"
- fi
+ if [ "$CARCH" = "i686" ]; then
+ mkdir -p $startdir/pkg/usr/lib/mozilla/plugins
+ ln -s /opt/java/jre/plugin/i386/ns7/libjavaplugin_oji.so $startdir/pkg/usr/lib/mozilla/plugins
+ elif [ "$CARCH" = "x86_64" ]; then
+ mkdir -p $startdir/pkg/usr/lib/mozilla/plugins
+ ln -s /opt/java/jre/lib/amd64/libnpjp2.so $startdir/pkg/usr/lib/mozilla/plugins
+ fi
- mkdir -p $startdir/pkg/usr/share/licenses/jre
- cp $startdir/pkg/opt/java/jre/COPYRIGHT $startdir/pkg/usr/share/licenses/jre
- cp $startdir/pkg/opt/java/jre/LICENSE $startdir/pkg/usr/share/licenses/jre
- cp $startdir/pkg/opt/java/jre/THIRDPARTYLICENSEREADME.txt $startdir/pkg/usr/share/licenses/jre
+ mkdir -p $startdir/pkg/usr/share/licenses/jre
+ cp $startdir/pkg/opt/java/jre/COPYRIGHT $startdir/pkg/usr/share/licenses/jre
+ cp $startdir/pkg/opt/java/jre/LICENSE $startdir/pkg/usr/share/licenses/jre
+ cp $startdir/pkg/opt/java/jre/THIRDPARTYLICENSEREADME.txt $startdir/pkg/usr/share/licenses/jre
}