updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / perl-dist-zilla-plugin-reportversions / PKGBUILD
blob84ddabd47a14f669a88695b6adef3ba1aecc6f93
1 # CPAN Name  : Dist-Zilla-Plugin-ReportVersions
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.04
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-dist-zilla-plugin-reportversions/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-dist-zilla-plugin-reportversions'
8 pkgver='1.101700'
9 pkgrel='1'
10 pkgdesc="Write a test that reports used module versions"
11 arch=('any')
12 url='http://search.cpan.org/dist/Dist-Zilla-Plugin-ReportVersions'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-dist-zilla' 'perl-moose')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/M/MA/MARCEL/Dist-Zilla-Plugin-ReportVersions-1.101700.tar.gz')
20 md5sums=('c2ec7d4358299e6f13822d465c74e983')
22 build() {
23   DIST_DIR="${srcdir}/Dist-Zilla-Plugin-ReportVersions-1.101700"
24   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
25     PERL_AUTOINSTALL=--skipdeps                            \
26     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
27     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
28     MODULEBUILDRC=/dev/null
29   {
30         cd "$DIST_DIR" &&
31     perl Makefile.PL &&
32     make &&
33     make test &&
34     make DESTDIR="$pkgdir" install;
35   } || return 1;
37   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete