mandrel: update to 23.1.5.0.
[void-pkg.git] / srcpkgs / mandrel / template
blob2a181e32e7560b606ff068900913b60ce14aed8f
1 # Template file for 'mandrel'
2 pkgname=mandrel
3 version=23.1.5.0
4 revision=1
5 _java_ver=21
6 _mx_ver=6.53.2
7 archs="aarch64* x86_64*"  # upstream supported archs
8 hostmakedepends="openjdk${_java_ver} openjdk${_java_ver}-jmods
9  openjdk${_java_ver}-src openjdk${_java_ver}-static-libs python3"
10 makedepends="zlib-devel"
11 short_desc="Downstream distribution of the GraalVM community edition"
12 maintainer="Leah Neukirchen <leah@vuxu.org>"
13 license="GPL-2.0-only, Classpath-exception-2.0"
14 homepage="https://github.com/graalvm/mandrel"
15 distfiles="https://github.com/graalvm/mandrel-packaging/archive/refs/tags/mandrel-${version}-Final.tar.gz>packaging-${version}.tar.gz
16  https://github.com/graalvm/mandrel/archive/refs/tags/mandrel-${version}-Final.tar.gz
17  https://github.com/graalvm/mx/archive/refs/tags/${_mx_ver}.tar.gz"
18 checksum="0ccf0811b0b0116e848837469aaf957f167247fee4e70488bc838c9dc38fe7cf
19  15e190df0e9e38d961a1274957c23eff765cf3c9dd67440e67e32e8ae0f63ad4
20  567c95449922b448d78daade5ba7bd91729a75367b69806f1bd590988a1ef717"
21 shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
22 nocross=yes
24 # XXX: only static builds with native-image work
25 # (else TEXTREL issues)
27 do_build() {
28         cd mandrel-packaging-*
29         export PATH=/usr/libexec/chroot-git:$PATH
30         . /etc/profile.d/jdk.sh
31         $JAVA_HOME/bin/java -ea build.java \
32                 --mx-home $PWD/../mx-* \
33                 --mandrel-repo $PWD/../mandrel-mandrel-* \
34                 --verbose
37 do_install() {
38         cd mandrel-packaging*/mandrel-java*
40         vmkdir usr/lib/jvm/mandrel${_java_ver}
41         vcopy . usr/lib/jvm/mandrel${_java_ver}
43         vlicense LICENSE
44         vlicense THIRD_PARTY_LICENSE.txt