Created
May 1, 2013 11:56
-
-
Save ItachiSan/5494900 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for https://aur.archlinux.org/packages/jre6-compat/
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: JavaAtom | |
# Shamelessly stolen from: | |
# "jre6" & "jdk6" Maintainer: Ethan Hall | |
# "jre6" & "jdk6" Contributors: Guillaume ALAUX, Daniel J Griffiths, Jason Chu, Geoffroy Carrier, Thomas Dziedzic, Dan Serban | |
# Updated to latest version by Giovanni Santini aka ItachiSan @ aur.archlinux.org | |
pkgname=jre6-compat | |
pkgver=6u45 | |
pkgrel=06 | |
pkgdesc="Java 6 Runtime Environment designed to work alongside OpenJDK7" | |
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html | |
arch=(i686 x86_64) | |
license=(custom) | |
depends=(glibc libxtst) | |
makedepends=(lynx) | |
provides=('java-runtime=6' j2re) | |
conflicts=('java-runtime=6' j2re) | |
replaces=(j2re) | |
install=jre.install | |
DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u --header "Cookie:oraclelicensejdk-${pkgver}-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com"') | |
source=("http://download.oracle.com/otn-pub/java/jdk/$pkgver-b$pkgrel/jdk-$pkgver-linux-i586.bin" | |
'javaws-launcher' | |
'construct.sh') | |
md5sums=('3269370b7c34e6cbfed8785d3d0c5cbd' | |
'45c15a6b4767288f2f745598455ea2bf' | |
'70b34ef3d5b997e7c15b1b50053d3e37') | |
[ "${CARCH}" == 'i686' ] && _arch=i586 | |
[ "${CARCH}" == 'x86_64' ] && _arch=x64 && source[0]="http://download.oracle.com/otn-pub/java/jdk/${pkgver}-b${pkgrel}/jdk-${pkgver}-linux-x64.bin" && md5sums[0]='40c1a87563c5c6a90a0ed6994615befe' | |
build() | |
{ | |
rm -rf unbundle-jdk | |
rm -rf linux-jdk | |
cd $srcdir | |
mkdir unbundle-jdk | |
cd unbundle-jdk | |
sh ../jdk-$pkgver-linux-$_arch.bin -noregister | |
cd .. | |
echo ${linux-jdk} | |
sh construct.sh unbundle-jdk linux-jdk linux-jre | |
mkdir -p $pkgdir/opt/java6 | |
mv linux-jdk/jre $pkgdir/opt/java6 | |
# mkdir -p $pkgdir/usr/lib/mozilla/plugins | |
mkdir -p $pkgdir/usr/share/licenses/jre6 | |
cp $pkgdir/opt/java6/jre/COPYRIGHT $pkgdir/usr/share/licenses/jre6 | |
cp $pkgdir/opt/java6/jre/LICENSE $pkgdir/usr/share/licenses/jre6 | |
cp $pkgdir/opt/java6/jre/THIRDPARTYLICENSEREADME.txt $pkgdir/usr/share/licenses/jre6 | |
install "${startdir}"/javaws-launcher "${pkgdir}"/opt/java6/jre/bin/javaws-launcher | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment