diff options
Diffstat (limited to 'community/moarvm/APKBUILD')
-rw-r--r-- | community/moarvm/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/moarvm/APKBUILD b/community/moarvm/APKBUILD new file mode 100644 index 00000000000..c0741f0c4d2 --- /dev/null +++ b/community/moarvm/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov> +# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov> +pkgname=moarvm +pkgver=2024.03 +pkgrel=0 +pkgdesc="VM with adaptive optimization and JIT compilation, built for Rakudo" +url="https://moarvm.org/" +# riscv64 doesn't compile, "Cannot implement AO_compare_and_swap_full on this architecture" +arch="all !riscv64" +license="Artistic-2.0" +depends_dev="$pkgname=$pkgver-r$pkgrel perl zstd-dev libffi-dev libuv-dev" +makedepends="$depends_dev" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://moarvm.org/releases/MoarVM-$pkgver.tar.gz" +builddir="$srcdir"/MoarVM-"$pkgver" +options="!check" # No tests + +build() { + unset CPPFLAGS CFLAGS + perl Configure.pl --prefix=/usr --has-libffi \ + --has-libuv --no-mimalloc --debug + make -j"$JOBS" +} + +package() { + make PKGCONFIGDIR=/usr/lib/pkgconfig \ + DESTDIR="$pkgdir" install + + install -Dvm644 Artistic2.txt CREDITS LICENSE \ + MANIFEST README.markdown VERSION \ + -t "$pkgdir"/usr/share/doc/"$pkgname" + cp -vr docs "$pkgdir"/usr/share/doc/"$pkgname"/ +} + +dev() { + default_dev + amove usr/share/nqp/lib +} + +sha512sums=" +ef570363d04f28af63ef550e5b5e98d5dc4584dac504fd53ffe733ebd4cb1050f3770f58c53e5d2032e693fc4e2687b29f24298784641bb753ecfe42805ae585 moarvm-2024.03.tar.gz +" |