summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0a15d9e9d320392dc438952357a34cb9116b416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Jens Staal <staal1978 at gmail dot com>
# Contributor: Myrddin <darknesseatsall at aol dot com>
pkgname=jdk10-openjdk-openj9-bin
_pkgver_minor="0.2.13"
_pkgver_split="0.2"
_pkgver_build="13"
_pkgver_minweb="0.2%2B13"
_openj_ver="0.9.0"
_majjver="10"
pkgver=${_majjver}.${_pkgver_split}.u${_pkgver_build}
pkgrel=1
pkgdesc="Eclipse (former IBM) OpenJ9 with openjdk${_majjver}"
arch=('x86_64')
url="https://adoptopenjdk.net/releases.html?variant=openjdk${_majjver}&jvmVariant=openj9#x64_linux"
license=('custom')
depends=('java-environment-common' 'ca-certificates-utils' 'nss')
provides=(
"java-environment=${_majjver}" 
"java-environment-openjdk=${_majjver}"
"java-runtime=${_majjver}" 
"java-runtime-openjdk=${_majjver}"
"java-runtime-headless=${_majjver}"
"java-runtime-headless-openjdk=${_majjver}"
)
makedepends=('coreutils' 'bash')
source=("https://github.com/AdoptOpenJDK/openjdk${_majjver}-openj9-releases/releases/download/jdk-${_majjver}.${_pkgver_minweb}_openj9-${_openj_ver}/OpenJDK${_majjver}-OPENJ9_x64_Linux_jdk-${_majjver}.${_pkgver_minor}_openj9-${_openj_ver}.tar.gz")
noextract=("OpenJDK${_majjver}-OPENJ9_x64_Linux_jdk-${pkgver}_openj9-${_pkgver_minweb}.tar.gz")
# https://github.com/AdoptOpenJDK/openjdk9-openj9-releases/releases/download/jdk-9%2B181/OpenJDK9-OPENJ9_x64_Linux_jdk-9.181.sha256.txt
# extract automatically? [bash -c "${_pkgsum_sha256}"] Could this work?
sha256sums=('1ef0dab3853b2f3666091854ef8149fcb85970254558d5d62cfa9446831779d1')

package() {
    cd "$srcdir"
    
    mkdir -p "${pkgdir}/usr/lib/jvm/"
    tar -xf OpenJDK${_majjver}-OPENJ9_x64_Linux_jdk-${_majjver}.${_pkgver_minor}_openj9-${_openj_ver}.tar.gz -C "${pkgdir}/usr/lib/jvm/"
    mv "${pkgdir}/usr/lib/jvm/jdk-${_majjver}.${_pkgver_split}+${_pkgver_build}" "${pkgdir}/usr/lib/jvm/java-${_majjver}-j9"
    mkdir -p "${pkgdir}/usr/share/licenses"
    ln -s "/usr/lib/jvm/java-${_majjver}-j9/legal" "${pkgdir}/usr/share/licenses/java-${_majjver}-j9"
    
}