diff options
Diffstat (limited to 'community/perl-test-failwarnings/APKBUILD')
-rw-r--r-- | community/perl-test-failwarnings/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/perl-test-failwarnings/APKBUILD b/community/perl-test-failwarnings/APKBUILD new file mode 100644 index 0000000000..4d47127066 --- /dev/null +++ b/community/perl-test-failwarnings/APKBUILD @@ -0,0 +1,42 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=perl-test-failwarnings +_pkgreal=Test-FailWarnings +pkgver=0.008 +pkgrel=0 +pkgdesc="Add test failures if warnings are caught" +url="http://search.cpan.org/dist/Test-FailWarnings/" +arch="noarch" +license="apache_2_0" +cpandepends="" +cpanmakedepends=" perl-capture-tiny " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor +} + +build() { + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make && make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="c03d51f550dbfd9945722ff7f4c32717 Test-FailWarnings-0.008.tar.gz" +sha256sums="da34ef9029f6849d6026201d49127d054ee6ac4b979c82210315f5721964a96f Test-FailWarnings-0.008.tar.gz" +sha512sums="7bffcc18191326095d99ad01be6426f4d9d927f769a156318f9abfea67da6adfecb657bad89390740c9f531fe69c717afa1d250258eed63d127bf10cbbf2bd51 Test-FailWarnings-0.008.tar.gz" |