# Contributor: Curt Tilmes # Maintainer: Curt Tilmes pkgname=nqp pkgver=2018.08 pkgrel=0 pkgdesc="Not Quite Perl" url="https://github.com/perl6/nqp" arch="all !x86 !armhf" 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="0c0a07fc6f233d3e7bf79df96ba5a04c57dde4220e24b95269df815fcac389802d796d83b6c310ac3862f413b044b95e7886be215553ae9ebfb388993756361d nqp-2018.08.tar.gz"