updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / perl-test-kwalitee / PKGBUILD
blob668a923462e3b77354bf3e3e3eac3452cd879532
1 # CPAN Name  : Test-Kwalitee
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.02
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-test-kwalitee/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-test-kwalitee'
8 pkgver='1.01'
9 pkgrel='1'
10 pkgdesc="Test the quality of your distribution, automatically"'!'""
11 arch=('any')
12 url='http://search.cpan.org/dist/Test-Kwalitee'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-module-cpants-analyse>=0.82')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/Test-Kwalitee-1.01.tar.gz')
20 md5sums=('c37404427f08bd91808d2b5391ddc394')
22 build() {
23   DIST_DIR="${srcdir}/Test-Kwalitee-1.01"
24   export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1 \
25     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"
26     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
27     MODULEBUILDRC=/dev/null
28   {
29         cd "$DIST_DIR" &&
30     perl Build.PL --installdirs=vendor --destdir="$pkgdir" &&
31     perl Build &&
32     perl Build test &&
33     perl Build install;
34   } || return 1;
36   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete