updated on Tue Jan 17 08:05:08 UTC 2012
[aur-mirror.git] / perl-dist-zilla-plugin-submittingpatches / PKGBUILD
blobc0f3e4b0fadb87737477bbafbddc22f213f405de
1 # CPAN Name  : Dist-Zilla-Plugin-SubmittingPatches
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-submittingpatches/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-dist-zilla-plugin-submittingpatches'
8 pkgver='0.03'
9 pkgrel='1'
10 pkgdesc="Add SubmittingPatches documentation"
11 arch=('any')
12 url='http://search.cpan.org/dist/Dist-Zilla-Plugin-SubmittingPatches'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl>=5.004' 'perl-dist-zilla' 'perl-moose' 'perl-namespace-autoclean')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/X/XE/XENO/Dist-Zilla-Plugin-SubmittingPatches-0.03.tar.gz')
20 md5sums=('01a970540d6885e37466e9dce1099fb0')
22 build() {
23   DIST_DIR="${srcdir}/Dist-Zilla-Plugin-SubmittingPatches-0.03"
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