summaryrefslogtreecommitdiff
path: root/packages/oraclejdk8/build.gradle
blob: e312797997d67521082188a9a3f594cbe05a5eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import org.xapek.yvesf.gradle.DownloadTask

version '8.66'

task download(type: DownloadTask) {
    source "http://ftp.heanet.ie/mirrors/funtoo/distfiles/oracle-java/jre-8u66-linux-x64.tar.gz"
    sha256sum 'f2249370a6ac4ca8977b66d7665179f0fef4df732f3af80b0f34567d594588bf'
}

task untar(type: Copy) {
    into file("${buildDir}/unpacked/dist")
    from (tarTree(download.destFile))
    eachFile { FileCopyDetails fcd ->
        fcd.path = fcd.path.substring(path.indexOf('/')+1)
    }
}
untar.dependsOn(download)

ospackage {
    into "/usr/lib/jvm/java-${project.version}-oraclejdk"
    from untar.outputs.files
}