blob: 66607514305b8d8e6c154e0d1b8820eae058efd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
"
|