updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / perl-module-cpants-analyse / PKGBUILD
blob56df94e10b4ed62ad2c079c6893b638a0dc0729b
1 # CPAN Name  : Module-CPANTS-Analyse
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.02
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-module-cpants-analyse/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-module-cpants-analyse'
8 pkgver='0.85'
9 pkgrel='1'
10 pkgdesc="Generate Kwalitee ratings for a distribution\r"
11 arch=('any')
12 url='http://search.cpan.org/dist/Module-CPANTS-Analyse'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-archive-any>=0.06' 'perl-array-diff>=0.04' 'perl-class-accessor>=0.19' 'perl-cpan-distnameinfo>=0.06' 'perl-file-find-rule' 'perl-file-slurp' 'perl-io-capture>=0.05' 'perl-libwww' 'perl-list-moreutils' 'perl-module-extractuse>=0.18' 'perl-readonly' 'perl-software-license>=0.003' 'perl-test-deep' 'perl-test-nowarnings' 'perl-test-warn>=0.11' 'perl-test-yaml-meta>=0.11' 'perl-text-csv-xs>=0.45' 'perl-yaml-syck>=0.95')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/Module-CPANTS-Analyse-0.85.tar.gz')
20 md5sums=('7c22dd04c3d6ef8f94ee3b8dc382b717')
22 build() {
23   DIST_DIR="${srcdir}/Module-CPANTS-Analyse-0.85"
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 Makefile.PL INSTALLDIRS=vendor &&
31     make &&
32     make test &&
33     make DESTDIR="$pkgdir" install;
34   } || return 1;
36   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete