name = 'Java'
version = '11.0.20'
local_build = '8'

homepage = 'http://openjdk.java.net'
description = """Java Platform, Standard Edition (Java SE) lets you develop and deploy
Java applications on desktops and servers."""

toolchain = SYSTEM

local_tarball_tmpl = 'OpenJDK%%(version_major)sU-jdk_%s_linux_hotspot_%%(version)s_%s.tar.gz'

# Using the Adoptium Eclipse Temurin builds, recommended by https://whichjdk.com/#distributions

source_urls = ['https://github.com/adoptium/temurin%%(version_major)s-binaries/releases/download/jdk-%%(version)s+%s/'
               % local_build]
sources = [local_tarball_tmpl % ('%(jdkarch)s', local_build)]

checksums = [
    {
        local_tarball_tmpl % ('x64', local_build):
            '7a99258af2e3ee9047e90f1c0c1775fd6285085759501295358d934d662e01f9',
        local_tarball_tmpl % ('aarch64', local_build):
            'eb821c049c2d2f7c3fbf8ddcce2d608d3aa7d488700e76bfbbebabba93021748',
        local_tarball_tmpl % ('ppc64le', local_build):
            '1125931b3a38e6e305a1932fc6cfd0b023a0fbec2cab10e835a2ee2c50848b42',
    }
]

moduleclass = 'lang'
