diff options
Diffstat (limited to 'community/nqp/APKBUILD')
-rw-r--r-- | community/nqp/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/nqp/APKBUILD b/community/nqp/APKBUILD new file mode 100644 index 00000000000..66607514305 --- /dev/null +++ b/community/nqp/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov> +# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov> +pkgname=nqp +pkgver=2024.03 +pkgrel=0 +pkgdesc="Not Quite Perl" +url="https://github.com/Raku/nqp" +# riscv64 blocked by moarvm +# ppc64le, s390x: fails check +arch="all !ppc64le !s390x !riscv64" +options="!archcheck" # Arch dependencies are embedded +license="Artistic-2.0" +depends="moarvm~$pkgver" +makedepends="perl-utils moarvm-dev~$pkgver" +checkdepends="perl-test-harness" +subpackages="$pkgname-doc" +source="https://github.com/Raku/nqp/releases/download/$pkgver/nqp-$pkgver.tar.gz" + +build() { + perl Configure.pl --prefix=/usr --backends=moar + make -j"$JOBS" +} + +check() { + # Tests take too long to run on these architectures + if [ "$CARCH" = "x86" ] || [ "$CARCH" = "armhf" ]; then + ./nqp -V + else + export TEST_JOBS=$JOBS + export HARNESS_VERBOSE=1 + + msg "Running $TEST_JOBS parallel test jobs" + make test + fi +} + +package() { + make DESTDIR="$pkgdir" install + + install -Dvm644 CREDITS LICENSE README.pod VERSION \ + -t "$pkgdir"/usr/share/doc/"$pkgname" + cp -vr docs examples "$pkgdir"/usr/share/doc/"$pkgname"/ +} + +sha512sums=" +e35b388b8546d4a02522e18fe03964475ec7128e3703aa8f0a56225f67c8301391287a218d903ff67176cbbf56055607468c9365837800dbb631bbcb46a9652a nqp-2024.03.tar.gz +" |