# Maintainer: Andy Weidenbaum pkgname=perl6-digest-xxhash pkgver=1.0.1 pkgrel=1 pkgdesc="Perl 6 bindings for xxHash" arch=('any') depends=('libxxhash' 'perl6') checkdepends=('perl') makedepends=('git') groups=('perl6') url="https://github.com/atweiden/digest-xxhash" license=('UNLICENSE') source=($pkgname-$pkgver::git+https://github.com/atweiden/digest-xxhash git+https://github.com/atweiden/digest-xxhash.wiki) sha256sums=('SKIP' 'SKIP') check() { cd "$srcdir/$pkgname-$pkgver" msg2 'Running tests...' PERL6LIB=lib prove -r -e perl6 } package() { cd "$srcdir/$pkgname-$pkgver" msg2 'Installing documentation...' install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" msg2 'Installing wiki...' cp -dpr --no-preserve=ownership "$srcdir/digest-xxhash.wiki" \ "$pkgdir/usr/share/doc/perl6-digest-xxhash/wiki" msg2 'Installing...' export RAKUDO_LOG_PRECOMP=1 export RAKUDO_RERESOLVE_DEPENDENCIES=0 perl6-install-dist \ --to="$pkgdir/usr/share/perl6/vendor" \ --for=vendor \ --from=. msg2 'Cleaning up pkgdir...' find "$pkgdir" -type d -name .git -exec rm -r '{}' + }