Created
May 1, 2013 12:03
-
-
Save ItachiSan/5494922 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for https://aur.archlinux.org/packages/jdk6-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=jdk6-compat | |
pkgver=6u45 | |
pkgrel=06 | |
pkgdesc="Java 6 Development Kit designed to work alongside OpenJDK7 installation" | |
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html | |
arch=(i686 x86_64) | |
license=(custom) | |
depends=(jre6-compat) | |
makedepends=(lynx) | |
#provides=('java-environment=6' j2sdk) | |
#conflicts=('java-environment=6' j2sdk) | |
replaces=(sun-jdk6,j2sdk) | |
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"') | |
install=jdk.install | |
# http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-i586.bin | |
source=("http://download.oracle.com/otn-pub/java/jdk/$pkgver-b$pkgrel/jdk-$pkgver-linux-i586.bin" | |
'java-control-panel.desktop' | |
'java-monitoring-and-management-console.desktop' | |
'java-policy-settings.desktop' | |
'java-visualvm.desktop' | |
'java-web-start.desktop' | |
'jdk6.profile' | |
'jdk6.profile.csh' | |
'construct.sh' | |
'derby-network-server' | |
'derby-network-server.conf') | |
md5sums=('3269370b7c34e6cbfed8785d3d0c5cbd' | |
'e4d814c0f310d77ed6990c731bccd0fb' | |
'4bc2b0be93f76ed07b471e3c89eb5a8a' | |
'8e3cec7ab641ec449cabd068be583f5c' | |
'9ba148ebabce8ed3351b813a9a66b6e5' | |
'619ec32235dcfe454234ef4316f8a7cc' | |
'39239a4b3296971ac6fd9a8df25e4107' | |
'8aaa7219aa62d4c344e828d71003344d' | |
'70b34ef3d5b997e7c15b1b50053d3e37' | |
'a279e195e249000646895d93e199860d' | |
'4bdff6982c66d24a879c424aaac3d04d') | |
_arch=i586 | |
[ "${CARCH}" == 'x86_64' ] && _arch=x64 | |
[ "$CARCH" == 'x86_64' ] && 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 | |
mkdir unbundle-jdk | |
cd unbundle-jdk | |
sh ../jdk-$pkgver-linux-$_arch.bin -noregister | |
cd .. | |
sh construct.sh unbundle-jdk linux-jdk linux-jre | |
rm -rf linux-jdk/jre | |
install -d "${pkgdir}"/opt | |
mv linux-jdk "${pkgdir}"/opt/java6 | |
mkdir -p "${pkgdir}"/usr/share/licenses/jdk6 | |
#mkdir -p "${pkgdir}"/etc/profile.d/ | |
install -m644 "${pkgdir}"/opt/java6/COPYRIGHT "${pkgdir}"/usr/share/licenses/jdk6 | |
install -m644 "${pkgdir}"/opt/java6/LICENSE "${pkgdir}"/usr/share/licenses/jdk6 | |
install -m644 "${pkgdir}"/opt/java6/THIRDPARTYLICENSEREADME.txt "${pkgdir}"/usr/share/licenses/jdk6 | |
#install -m755 jdk6.profile "${pkgdir}"/etc/profile.d/jdk5.sh | |
#install -m755 jdk6.profile.csh "${pkgdir}"/etc/profile.d/jdk6.csh | |
for i in kinit ktab klist; do | |
rm "${pkgdir}"/opt/java6/bin/${i} | |
rm "${pkgdir}"/opt/java6/man/ja_JP.eucJP/man1/${i}.1 | |
rm "${pkgdir}"/opt/java6/man/man1/${i}.1 | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment