updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-pod-elemental / PKGBUILD
blob608b7305b28fc8396a3721411b3d86685c97a1c8
1 # CPAN Name  : Pod-Elemental
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.04
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-pod-elemental/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-pod-elemental'
8 pkgver='0.101620'
9 pkgrel='1'
10 pkgdesc="work with nestable Pod elements"
11 arch=('any')
12 url='http://search.cpan.org/dist/Pod-Elemental'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-mixin-linewise' 'perl-moose' 'perl-moose-autobox>=0.10' 'perl-moosex-types' 'perl-namespace-autoclean' 'perl-pod-eventual>=0.004' 'perl-string-rewriteprefix' 'perl-string-truncate' 'perl-sub-exporter' 'perl-sub-exporter-formethods' 'perl-test-deep' 'perl-test-differences')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Pod-Elemental-0.101620.tar.gz')
20 md5sums=('2be92b71cdb4b156d1bb32a6242176cf')
22 build() {
23   DIST_DIR="${srcdir}/Pod-Elemental-0.101620"
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 INSTALLDIRS=vendor &&
32     make &&
33     make test &&
34     make DESTDIR="$pkgdir" install;
35   } || return 1;
37   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete