# Automatically generated by apkbuild-cpan, template 4 # Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=perl-par pkgver=1.020 pkgrel=0 #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=PAR pkgdesc="Perl Archive Toolkit" url="https://metacpan.org/release/PAR/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-archive-zip perl-par-dist" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/PAR-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ INSTALLDIRS=vendor \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install } doc() { local file; find "$pkgdir" -name "*.pod" | while read -r file; do amove "${file#"$pkgdir"}" done default_doc } sha512sums=" 0a94fa3288c01710171703be94c0b247abfbfec41f5f2adee3a6f438934b24bc2f4f8736c4bb3014ab1754732682c8151450efe9741728b35a23e1c4d003480e PAR-1.020.tar.gz "