public
Last active

Java PKGBUILDs

  • Download Gist
Java 1.3
Groff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# Maintainer: Anshuman Bhaduri <anshuman (dot) bhaduri 0 (at) gmail (dot) com>
 
pkgname=j2sdk3
pkgver=3.1.20
_pkgver=${pkgver//./_}
pkgrel=1
pkgdesc="Java 3 Development Kit"
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
arch=('i686' 'x86_64')
license=(custom)
if [ "${CARCH}" == 'i686' ]; then
depends=('glibc' 'libxtst' 'lib-compat')
elif [ "${CARCH}" == 'x86_64' ]; then
depends=('lib32-glibc' 'lib32-libxtst' 'lib-compat')
fi
sha1sums=('c2d2f9a38378f4460a42daccc4017f882cc25115' \
'7010a77ba12e0255163b19c4872171f6d22dfd32')
 
# Download the file manually and place next to PKGBUILD since it can't be
# retrieved from a direct download link.
source=("http://download.oracle.com/otn/java/j2sdk/1.3.1_20/j2sdk-1_3_1_20-linux-i586.bin"
"x86_64.patch")
 
build()
{
cd "${srcdir}"
sh j2sdk-1_${_pkgver}-linux-i586.bin
 
if [ "${CARCH}" == 'x86_64' ]; then
cd jdk1.${_pkgver/_/.}
chmod u+w bin/.java_wrapper bin/realpath jre/bin/.java_wrapper jre/bin/realpath
patch -Np1 -i "${srcdir}"/x86_64.patch
chmod u-w bin/.java_wrapper bin/realpath jre/bin/.java_wrapper jre/bin/realpath
fi
 
cd "${srcdir}"
mkdir -p ${pkgdir}/opt
mv jdk1.${_pkgver/_/.} ${pkgdir}/opt/${pkgname}
 
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${pkgdir}/opt/${pkgname}/COPYRIGHT ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${pkgdir}/opt/${pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
}
Java 1.4
Groff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
# Maintainer: Anshuman Bhaduri <anshuman (dot) bhaduri 0 (at) gmail (dot) com>
 
pkgname=j2sdk4
pkgver=4.2.19
_pkgver=${pkgver//./_}
pkgrel=1
pkgdesc="Java 4 Development Kit"
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
arch=('i686' 'x86_64')
license=(custom)
if [ "${CARCH}" == 'i686' ]; then
depends=('glibc' 'libxtst')
elif [ "${CARCH}" == 'x86_64' ]; then
depends=('lib32-glibc' 'lib32-libxtst')
fi
sha1sums=('7c66d03bb6762e549b0644262d08075eb972ac53')
 
# Download the file manually and place next to PKGBUILD since it can't be
# retrieved from a direct download link.
source=("http://download.oracle.com/otn/java/j2sdk/1.4.2_19/j2sdk-1_4_2_19-linux-i586.bin")
 
build()
{
cd "${srcdir}"
 
sh j2sdk-1_${_pkgver}-linux-i586.bin
mkdir -p ${pkgdir}/opt
mv j2sdk1.${_pkgver/_/.} ${pkgdir}/opt/${pkgname}
 
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${pkgdir}/opt/${pkgname}/COPYRIGHT ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${pkgdir}/opt/${pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${pkgdir}/opt/${pkgname}/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/${pkgname}
}
x86_64.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
diff -aur a/bin/.java_wrapper b/bin/.java_wrapper
--- a/bin/.java_wrapper 2007-01-19 10:02:55.000000000 +1300
+++ b/bin/.java_wrapper 2012-08-10 18:21:06.983227835 +1200
@@ -11,7 +11,7 @@
progname=`basename $0`
case "`uname -m`" in
- i[3-6]86 | ia32 | ia64 | i?86)
+ i[3-6]86 | ia32 | ia64 | i?86 | x86_64)
proc=i386
;;
sparc*)
diff -aur a/bin/realpath b/bin/realpath
--- a/bin/realpath 2007-01-19 10:02:55.000000000 +1300
+++ b/bin/realpath 2012-08-10 18:21:24.560677617 +1200
@@ -7,7 +7,7 @@
SVPATH="$PATH"
PATH=/bin:/usr/bin
case "`uname -m`" in
- i[3-6]86)
+ i[3-6]86 | x86_64)
proc=i386
;;
sparc*)
diff -aur a/jre/bin/.java_wrapper b/jre/bin/.java_wrapper
--- a/jre/bin/.java_wrapper 2007-01-19 10:02:55.000000000 +1300
+++ b/jre/bin/.java_wrapper 2012-08-10 18:21:57.732155498 +1200
@@ -11,7 +11,7 @@
progname=`basename $0`
case "`uname -m`" in
- i[3-6]86 | ia32 | ia64 | i?86)
+ i[3-6]86 | ia32 | ia64 | i?86 | x86_64)
proc=i386
;;
sparc*)
diff -aur a/jre/bin/realpath b/jre/bin/realpath
--- a/jre/bin/realpath 2007-01-19 10:02:55.000000000 +1300
+++ b/jre/bin/realpath 2012-08-10 18:22:34.140444283 +1200
@@ -7,7 +7,7 @@
SVPATH="$PATH"
PATH=/bin:/usr/bin
case "`uname -m`" in
- i[3-6]86)
+ i[3-6]86 | x86_64)
proc=i386
;;
sparc*)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.