2014-09-02 14:22:37 +02:00
|
|
|
# Template file for 'oracle-jdk'
|
|
|
|
pkgname=oracle-jdk-arm
|
2015-07-15 17:10:49 +02:00
|
|
|
version=8u51
|
|
|
|
_longVersion=1.8.0_51
|
2015-01-21 11:27:20 +01:00
|
|
|
revision=1
|
2015-07-15 17:10:49 +02:00
|
|
|
_build=16
|
2014-09-02 14:22:37 +02:00
|
|
|
|
|
|
|
short_desc="Java Development Kit (JDK)"
|
2015-08-09 19:08:42 +02:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
2014-11-21 01:47:45 +01:00
|
|
|
homepage="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html"
|
2014-09-02 14:22:37 +02:00
|
|
|
license="oracle"
|
|
|
|
lib32disabled=yes
|
2014-11-01 13:10:22 +01:00
|
|
|
repository="nonfree"
|
2014-09-02 14:22:37 +02:00
|
|
|
only_for_archs="armv7l armv6l"
|
|
|
|
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info wget"
|
|
|
|
hostmakedepends="wget"
|
|
|
|
provides="java-environment-${version}_1 oracle-jdk-${version}_${revision}"
|
|
|
|
replaces="java-environment>=0"
|
|
|
|
|
|
|
|
_arch=arm
|
|
|
|
_filename=jdk-${version}-linux-arm-vfp-hflt.tar.gz
|
2015-07-15 17:13:19 +02:00
|
|
|
checksum="2a6644a4540c8f47784daf8afcbb405a03e686720e4c9eac6584253a55def0c7"
|
2014-09-02 14:22:37 +02:00
|
|
|
|
|
|
|
distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}-b${_build}/${_filename}"
|
|
|
|
wrksrc="jdk$_longVersion"
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
mkdir -p $wrksrc
|
|
|
|
cd $wrksrc
|
|
|
|
wget \
|
2015-01-21 11:27:20 +01:00
|
|
|
--no-check-certificate \
|
2014-09-02 14:22:37 +02:00
|
|
|
--header "Cookie: oraclelicense=accept-securebackup-cookie" \
|
|
|
|
--progress=bar:force \
|
|
|
|
-c -O $_filename \
|
|
|
|
$distfiles
|
|
|
|
echo "$checksum $_filename" | sha256sum -c || { sha256sum "$_filename"; return 1; }
|
|
|
|
}
|
|
|
|
|
|
|
|
do_extract() {
|
|
|
|
tar xf $_filename -C ..
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
sed \
|
|
|
|
-e "s|%LONG_VERSION%|${_longVersion}|" \
|
|
|
|
${FILESDIR}/oracle-jdk.sh.in > 10_oracle-jdk.sh
|
|
|
|
sed \
|
|
|
|
-e "s|%LONG_VERSION%|${_longVersion}|" \
|
|
|
|
-e "s|%ORACLE_JDK_URL%|${distfiles}|" \
|
|
|
|
-e "s|%ORACLE_JDK_CHECKSUM%|${checksum}|" \
|
|
|
|
${FILESDIR}/oracle-jdk-vars.sh.in > oracle-jdk-vars.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir "usr/lib/jvm"
|
|
|
|
vinstall oracle-jdk-vars.sh 644 "usr/lib/jvm"
|
|
|
|
|
|
|
|
vmkdir "usr/share/licenses/${pkgname}"
|
|
|
|
vlicense LICENSE
|
|
|
|
ln -s jdk${_longVersion} ${DESTDIR}/usr/lib/jvm/oracle-jdk
|
|
|
|
|
|
|
|
vmkdir "etc/profile.d"
|
|
|
|
vinstall 10_oracle-jdk.sh 644 "etc/profile.d"
|
|
|
|
}
|