summaryrefslogtreecommitdiff
path: root/perl-test-failwarnings/PKGBUILD
blob: cb08db2cfd253f5b5330e7bade1b423210e570f0 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
# 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='4'
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.8.1'
  'perl-carp'
  'perl-pathtools'
  'perl-test-simple>=0.86')
makedepends=(
  'perl-capture-tiny>=0.12'
  'perl-constant'
  'perl-extutils-makemaker>=6.17'
  'perl-file-temp'
  'perl-io'
  'perl-lib'
  'perl-scalar-list-utils'
  'perl-test-simple>=0.96')
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
}