# Maintainer: Det # Contributor: Ondrej Kucera # Contributor: Andrea Scarpino pkgname=('jdk-docs' 'javafx-docs') _major=8 _minor=102 _build=b14 pkgver=${_major}u${_minor} pkgrel=1 pkgdesc="Documentation for Oracle Java Development Kit" arch=('any') url="http://www.oracle.com/technetwork/java/javase/downloads/index.html" license=('custom:Oracle') optdepends=("java-runtime>=$_major: Run the examples" "java-environment>=$_major: Compile and run the examples") options=('!strip') source=("http://download.oracle.com/otn-pub/java/jdk/$pkgver-$_build/jdk-$pkgver-docs-all.zip" "http://download.oracle.com/otn-pub/java/javafx/$_major.0.$_minor-$_build/javafx-$pkgver-apidocs.zip" 'LICENSE-Documentation' 'LICENSE-Oracle-Legal-Notices') md5sums=('a69f65da842feb0fa6713d7da343a659' 'f2f7f1ac40eda1494b14b1a037d9dba2' '4d54057ca75b691366977dab2277e869' '3137397f4dba13f4a79157819af583a3') DLAGENTS=('http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -b oraclelicense=a -o %o %u') package_jdk-docs() { # Install install -d "$pkgdir"/usr/share/doc/java/ mv docs/* "$pkgdir"/usr/share/doc/java/ # License install -Dm644 LICENSE-Documentation "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_javafx-docs() { # Install install -d "$pkgdir"/usr/share/doc/java/javafx/ mv api "$pkgdir"/usr/share/doc/java/javafx/ # License install -Dm644 LICENSE-Oracle-Legal-Notices "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }