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