# Maintainer: Horst Burkhardt pkgname=jamvm pkgver=1.5.1 pkgrel=0 pkgdesc="a compact and comprehensible Java Virtual Machine, compatible with Classpath and OpenJDK" url="https://jamvm.sourceforge.net/" arch="all" options="!check" #No test suite provided. license="GPL-2.0+" depends="fastjar jikes classpath=0.93" makedepends="autoconf automake zlib-dev fastjar jikes libltdl zip classpath=0.93" subpackages="$pkgname-dev $pkgname-doc" source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz $pkgname-$pkgver-classes-location.patch $pkgname-$pkgver-aarch64-support.patch $pkgname-fpucontrol-fix.patch" prepare() { rm -v lib/classes.zip default_prepare autoreconf } build() { export JAVAC="/usr/bin/jikes" ./configure \ --enable-ffi \ --disable-int-caching \ --enable-runtime-reloc-checks \ --prefix=/usr/$pkgname \ --datadir=/usr/share \ --bindir=/usr/bin \ --with-classpath-install-dir=/usr make } package() { make DESTDIR="$pkgdir" install ln -s /usr/bin/jamvm /usr/bin/java ln -s /usr/bin/jikes /usr/bin/javac ln -s /usr/bin/fastjar /usr/bin/jar } sha512sums="9f93611fefb28b5494d166d7ec9575eb8d12add775dd65b2b46303355e3f845f417d5301649a1f09cb306e6690cd82b67cb1dface30ce18d0b2ecc815d3bc9b9 jamvm-1.5.1.tar.gz 4380a95ee83bbcb076c8f19854dcd1c78fb81bc210ed2da04ce37d5977a0788debb1a3de04adff8295a6c5623e2fb2aa20739dd743f4e5b7fafaabe323189e0e jamvm-1.5.1-aarch64-support.patch 0e441916dbf66289bea37da807a85930a9fe320b5c3a5301df85a870418125fe9fe0c5fb7ce7e4baa9dfc75a3438509e9d77b0ede67b06411935875ec7e641ee jamvm-1.5.1-classes-location.patch 0ab07b96bdaae346b1bacbc7736488e357f7a959302b09d69ee038fdbf817f798ebf7cce47b79a2ed5febc688307871804eed71a278b0f499bb88eb48a897565 jamvm-fpucontrol-fix.patch"