void-packages/srcpkgs/mandrel/template

46 lines
1.6 KiB
Bash

# Template file for 'mandrel'
pkgname=mandrel
version=23.1.3.1
revision=1
_java_ver=21
_mx_ver=6.53.2
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="144e8618f832293a41720984294b97ce0a38d8ca14e6bdc18836bae62e8061b5
b120e1cc3427d4f7bd7e7ebc58b4b3d29adfd9308a0411ed7ec6a4da0df0f2bc
567c95449922b448d78daade5ba7bd91729a75367b69806f1bd590988a1ef717"
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
. /etc/profile.d/jdk.sh
$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
}