summaryrefslogtreecommitdiff
path: root/perl-test-failwarnings/PKGBUILD
blob: e0edf03dc4f94bd8e3003f59dbd29fc52f78e8fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer : Erich Eckner <arch at eckner dot net>
# CPAN Name  : Test::FailWarnings
# Contributor: Anton Leontiev <bunder /at/ t-25.ru>
# Generator  : CPANPLUS::Dist::Arch 1.28

pkgname=perl-test-failwarnings
pkgver=0.008
pkgrel=1
pkgdesc='A Perl package that add test failures if warnings are caught'
arch=('any')
url='http://search.cpan.org/dist/Test-FailWarnings'
license=('Apache')
depends=('perl>=5.10.1')
checkdepends=('perl>=5.13.4' 'perl-capture-tiny>=0.12')
_distdir="Test-FailWarnings-${pkgver}"
source=(http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/${_distdir}.tar.gz)
options=(!emptydirs)
sha512sums=('7bffcc18191326095d99ad01be6426f4d9d927f769a156318f9abfea67da6adfecb657bad89390740c9f531fe69c717afa1d250258eed63d127bf10cbbf2bd51')

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

check() {
	cd ${_distdir}
	make test
}

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