void-packages/srcpkgs/mandrel/template

46 lines
1.6 KiB
Bash

# Template file for 'mandrel'
pkgname=mandrel
version=23.0.1.2
revision=1
_java_ver=17
_mx_ver=6.35.1
archs="aarch64* x86_64*" # upstream supported archs
hostmakedepends="openjdk${_java_ver} openjdk${_java_ver}-jmods
openjdk${_java_ver}-src openjdk${_java_ver}-static-libs python3"
makedepends="zlib-devel"
short_desc="Downstream distribution of the GraalVM community edition"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-only, Classpath-exception-2.0"
homepage="https://github.com/graalvm/mandrel"
distfiles="https://github.com/graalvm/mandrel-packaging/archive/refs/tags/mandrel-${version}-Final.tar.gz>packaging-${version}.tar.gz
https://github.com/graalvm/mandrel/archive/refs/tags/mandrel-${version}-Final.tar.gz
https://github.com/graalvm/mx/archive/refs/tags/${_mx_ver}.tar.gz"
checksum="db8fdb0a0cf3c80226f301982e437c4a63cc7486f292784804475be1b5d5c900
745c4cedead5d43a09d9b2a05be50e95df53c1923a5969d68f02b0d5a3f7fa55
9580168c4fe32dd70609b22670c633cb4c5f25826841083f4e9cdd5d8fe7e59d"
shlib_provides="libawt.so libawt_xawt.so libjava.so libjli.so libjvm.so libjawt.so"
nocross=yes
# XXX: only static builds with native-image work
# (else TEXTREL issues)
do_build() {
cd mandrel-packaging-*
export PATH=/usr/libexec/chroot-git:$PATH
export JAVA_HOME=/usr/lib/jvm/openjdk${_java_ver}
$JAVA_HOME/bin/java -ea build.java \
--mx-home $PWD/../mx-* \
--mandrel-repo $PWD/../mandrel-mandrel-* \
--verbose
}
do_install() {
cd mandrel-packaging*/mandrel-java*
vmkdir usr/lib/jvm/mandrel${_java_ver}
vcopy . usr/lib/jvm/mandrel${_java_ver}
vlicense LICENSE
vlicense THIRD_PARTY_LICENSE.txt
}