blob: 86c29297ec6789a73324a007d2ad81c656f85a85 (
plain) (
tree)
|
|
# Maintainer: Mattias Andrée
pkgname=java7-environment-compat
pkgver=7.7.17
pkgrel=1
_ver=7u17
_build=b02
_docver=7u17
_docbuild=b02
pkgdesc='Java 7 Development Kit that can be install alongside any other version, includes extracted library source code, Java API in HTML and some /usr/bin/*7 commands'
url=http://www.oracle.com/technetwork/java/javase/downloads/index.html
arch=(i686 x86_64)
license=(custom)
makedepends=(unzip)
DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u --header "Cookie:oraclelicensejdk-${_ver}-oth-JPR=accept-securebackup-cookie;gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk${_ver}-downloads-1836413.html"')
source=("http://download.oracle.com/otn-pub/java/jdk/$_ver-$_build/jdk-$_ver-linux-x64.tar.gz"
"http://download.oracle.com/otn-pub/java/jdk/$_docver-$_docbuild/jdk-$_docver-apidocs.zip")
sha384sums=(c46ed087bec49c795d7db74664204094d3f20dcb48b59dfb814e64703aaabb343a63ee397e2e9fc1a71d7aa5bc26b704
e15f9c5b88c4817b1d68098d76d7a20eff861452f4661fffb2ecae4b65608e81196361166e6964c265a35d65da32d084)
## javase: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
## apidoc: http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html
[ "${CARCH}" == 'i686' ] &&
source[0]="http://download.oracle.com/otn-pub/java/jdk/$_ver-$_build/jdk-$_ver-linux-i586.tar.gz" &&
sha384sums[0]=a13961ed94b50493558ced647e262699b34daf4464817007f57d36eb738ed13131fa7a1f66a1c4099d468b905673596e
_binfiles="appletviewer jar jarsigner java javac javadoc javah javap jdb serialver"
build()
{
msg "Extracting library source code"
cd $srcdir/jdk1.7.*
mkdir src
mv src.zip src
cd src
unzip src.zip
unlink src.zip
}
package()
{
msg "Correcting file structure"
mkdir -p $pkgdir/opt/jdk7
mv $srcdir/* $pkgdir/opt/jdk7
unlink $pkgdir/opt/jdk7/jdk-*-apidocs.zip
unlink $pkgdir/opt/jdk7/jdk-*-linux-*.tar.gz
mv $pkgdir/opt/jdk7/jdk1.7.*/* $pkgdir/opt/jdk7
rmdir $pkgdir/opt/jdk7/jdk1.7.*
mkdir -p $pkgdir/usr/bin
msg "Making command symlinks to /usr/bin/"
for file in $_binfiles; do
echo "Making link /usr/bin/${file}7 -> /opt/jdk7/bin/${file}"
ln -s /opt/jdk7/bin/${file} $pkgdir/usr/bin/${file}7
done
}
|