# Contributor: Curt Tilmes # Maintainer: Curt Tilmes pkgname=nqp pkgver=2023.06 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=" 890506e11d3dd446a60855ffd6b2bba0cd921c789b658c936ca8defdabc434b17fbc2c56e33eb4dceff39d7b757e4d28cc9a43e36ba67a927c0805a42e157dbf nqp-2023.06.tar.gz "