Created
August 12, 2012 23:26
-
-
Save anshumanb/3335287 to your computer and use it in GitHub Desktop.
Java PKGBUILDs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment