# Contributor: Curt Tilmes # Maintainer: Curt Tilmes pkgname=nqp pkgver=2018.10 pkgrel=1 pkgdesc="Not Quite Perl" url="https://github.com/perl6/nqp" arch="all !x86 !armhf !armv7" options="!archcheck" # Arch dependencies are embedded license="Artistic-2.0" depends="moarvm" makedepends="perl-utils moarvm-dev" install="" subpackages="$pkgname-doc" source="${pkgname}-${pkgver}.tar.gz::https://github.com/perl6/nqp/archive/${pkgver}.tar.gz" builddir="$srcdir"/"$pkgname"-"$pkgver" build() { cd "$builddir" perl Configure.pl --prefix=/usr --backends=moar make } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install } doc() { cd "$builddir" mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname" for file in CREDITS LICENSE README.pod VERSION docs examples; do cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname" done } sha512sums="bed9e3bbee307bf6ea163732a21a542f69290de15ff8fe6ff5e4eda03d1865811180a4428d805a4a3e9aacbdfe6d39858577bf53372a4008455100493c86a790 nqp-2018.10.tar.gz"