summaryrefslogblamecommitdiff
path: root/user/perl-test-failwarnings/APKBUILD
blob: a31710567968513f89a3b1f558ae1b146263bc69 (plain) (tree)































                                                                                                                                                                             
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-failwarnings
pkgver=0.008
pkgrel=0
pkgdesc="Perl module for failing tests on caught warnings"
url="https://metacpan.org/pod/Test::FailWarnings"
arch="noarch"
license="Apache-2.0"
depends="perl perl-capture-tiny"
makedepends=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-FailWarnings-$pkgver.tar.gz"
builddir="$srcdir/Test-FailWarnings-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="7bffcc18191326095d99ad01be6426f4d9d927f769a156318f9abfea67da6adfecb657bad89390740c9f531fe69c717afa1d250258eed63d127bf10cbbf2bd51  Test-FailWarnings-0.008.tar.gz"