aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-devel-cover/APKBUILD
blob: 072c64dde630ad524d6f3433f11ccfe5cc5706f4 (plain) (tree)



































                                                                                                                                                                      
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-devel-cover
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Devel-Cover
pkgver=1.36
pkgrel=0
pkgdesc="Code coverage metrics for Perl"
url="https://metacpan.org/release/Devel-Cover/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-html-parser perl-b-debug"
makedepends="perl-dev"
checkdepends="perl-test-differences"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PJ/PJCJ/Devel-Cover-$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="774c8350190622fb49bc72abb8cb452fd83e042571a2db37d89094e37c28280b288f806755343a07e79818db048aa8da4aeae5cfa5f25c5f97df728de9a68058  Devel-Cover-1.36.tar.gz"