summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/jdk/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/extra/community/jdk/PKGBUILD
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/extra/community/jdk/PKGBUILD')
-rw-r--r--abs/extra/community/jdk/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/abs/extra/community/jdk/PKGBUILD b/abs/extra/community/jdk/PKGBUILD
new file mode 100644
index 0000000..31924ce
--- /dev/null
+++ b/abs/extra/community/jdk/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
+# Previous Maintainer: Jason Chu <jason@archlinux.org>
+pkgname=jdk
+pkgver=6u12
+pkgrel=1
+pkgdesc="Sun's Java Development Kit"
+arch=(i686 x86_64)
+ [ "${CARCH}" = "i686" ] && ARCH=i586
+ [ "${CARCH}" = "x86_64" ] && ARCH=amd64
+url="http://java.sun.com"
+depends=('glibc' 'jre')
+install="jdk.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
+ jdk.profile)
+[ "$CARCH" = "i686" ] && md5sums=('560a51cfeecc4918d01ca29abc858d52'
+ '94065b612df0046d9ae758943f9f6a75'
+ '1e937a8bbca36330f730fc17663e3625')
+[ "$CARCH" = "x86_64" ] && md5sums=('0f687b6dbfe54e117bb0d9e090fda20b'
+ '94065b612df0046d9ae758943f9f6a75'
+ '1e937a8bbca36330f730fc17663e3625')
+replaces=('j2sdk')
+conflicts=('java-environment' 'j2sdk')
+provides=('java-environment' 'j2sdk')
+license=('custom')
+
+build() {
+ cd ${startdir}/src
+
+ mkdir unbundle-jdk
+ cd unbundle-jdk
+
+ sh ../jdk-${pkgver}-dlj-linux-${ARCH}.bin --accept-license
+
+ cd ..
+
+ sh construct.sh unbundle-jdk linux-jdk linux-jre
+
+ rm -rf linux-jdk/jre
+
+ mkdir -p ${startdir}/pkg/opt
+ mv linux-jdk ${startdir}/pkg/opt/java
+
+ install -D -m755 ${startdir}/src/${pkgname}.profile ${startdir}/pkg/etc/profile.d/${pkgname}.sh
+
+ mkdir -p $startdir/pkg/usr/share/licenses/jdk
+ cp $startdir/pkg/opt/java/COPYRIGHT $startdir/pkg/usr/share/licenses/jdk
+ cp $startdir/pkg/opt/java/LICENSE $startdir/pkg/usr/share/licenses/jdk
+ cp $startdir/pkg/opt/java/THIRDPARTYLICENSEREADME.txt $startdir/pkg/usr/share/licenses/jdk
+}