# Automatically generated by apkbuild-cpan, template 3 # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-module-metadata #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Module-Metadata pkgver=1.000038 pkgrel=1 pkgdesc="Gather package and POD information from perl module files" url="https://metacpan.org/release/Module-Metadata/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Module-Metadata-$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=" 49a37dd054b739bc8b23b633d2ac7ce4b288b6acaeb147e5eb159557ec85b5f6b61687a857d39174f086a5b4ac73108b14e715e879c3559db2a13bd38457c985 Module-Metadata-1.000038.tar.gz "