PKGBUILDs/community/perl-test-warn/PKGBUILD
2009-10-09 21:15:33 -05:00

24 lines
817 B
Bash

# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Firmicus <francois.archlinux.org>
pkgname=perl-test-warn
_realname=Test-Warn
pkgver=0.21
pkgrel=2
pkgdesc="Perl extension to test methods for warnings "
arch=(any)
url="http://search.cpan.org/~CHORNY/Test-Warn"
license=('GPL' 'PerlArtistic')
depends=('perl-tree-dag-node' 'perl-sub-uplevel>=0.12' 'perl>=5.10.0')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/C/CH/CHORNY/${_realname}-$pkgver.zip)
md5sums=('d33c38d18d2bedac52bfdbaf94c8744d')
build() {
cd $startdir/src/${_realname}-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=$startdir/pkg || return 1
find $startdir/pkg -name '.packlist' -delete
find $startdir/pkg -name '*.pod' -delete
}