# Automatically generated by apkbuild-cpan, template 3 # Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=perl-par-dist #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=PAR-Dist pkgver=0.51 pkgrel=0 pkgdesc="Create and manipulate PAR distributions" url="https://metacpan.org/release/PAR-Dist/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/PAR-Dist-$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 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="4c06ff54dfa8f3dc4766b60c45337b3cf80b32ec6bcc49d7e5a4786e0533e495f6215b257100fa5aae50f12e01a8b3d7144254d8706019c50ff115915f0fcb41 PAR-Dist-0.51.tar.gz"