# Contributor: Curt Tilmes # Maintainer: Curt Tilmes pkgname=zef pkgver=0.18.2 pkgrel=0 pkgdesc="Raku / Perl6 Module Management" url="https://github.com/ugexe/zef" arch="all !ppc64le !s390x !riscv64" # limited by rakudo options="!archcheck" # Precompiled arch dependent files included (quiet noarch warning) license="Artistic-2.0" depends="rakudo git wget curl tar unzip perl-utils" makedepends="rakudo-dev" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/ugexe/zef/archive/v$pkgver.tar.gz" check() { prove -e 'raku -Ilib' } package() { RAKUDO_RERESOLVE_DEPENDENCIES=0 /usr/share/rakudo/tools/install-dist.p6 \ --to="$pkgdir"/usr/share/rakudo/vendor --for=vendor rm "$pkgdir"/usr/share/rakudo/vendor/bin/zef-j \ "$pkgdir"/usr/share/rakudo/vendor/bin/zef-m mkdir -p "$pkgdir"/usr/bin ln -s /usr/share/rakudo/vendor/bin/zef "$pkgdir"/usr/bin/zef install -Dvm644 LICENSE META6.json README.md \ -t "$pkgdir"/usr/share/doc/"$pkgname" } sha512sums=" f497f075da11ccbf1aad5071eb7ce1ca617daf5f12894ac25e090a68e11e4759b92d32807b9be7778a019bec51471a00969bbc1121a7c8e92bd5405eed988ced zef-0.18.2.tar.gz "