updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / perl-ppi / PKGBUILD
blob9e038a4e966d0f2f53c59f22ab95204c672b388d
1 # Contributor: AUR Perl <aurperl@juster.info>
2 # Generator  : CPANPLUS::Dist::Arch 1.12
4 pkgname='perl-ppi'
5 pkgver='1.215'
6 pkgrel='1'
7 pkgdesc="Parse, Analyze and Manipulate Perl (without perl)"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl-clone>=0.30' 'perl-io-string>=1.07' 'perl-list-moreutils>=0.16' 'perl-params-util>=1.00' 'perl-task-weaken')
12 makedepends=('perl-class-inspector>=1.22' 'perl-file-remove>=1.42' 'perl-test-nowarnings>=0.084' 'perl-test-object>=0.07' 'perl-test-subcalls>=1.07')
13 url='http://search.cpan.org/dist/PPI'
14 source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/PPI-1.215.tar.gz')
15 md5sums=('7b58542e39e8a162d2f6866d7c059bae')
16 _distdir="${srcdir}/PPI-1.215"
18 build() {
19   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20       PERL_AUTOINSTALL=--skipdeps                            \
21       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
22       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
23       MODULEBUILDRC=/dev/null
25     cd "$_distdir"
26     /usr/bin/perl Makefile.PL
27     make
28   )
31 check() {
32   cd "$_distdir"
33   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
34     make test
35   )
38 package() {
39   cd "$_distdir"
40   make install
41   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
44 # Local Variables:
45 # mode: shell-script
46 # sh-basic-offset: 2
47 # End:
48 # vim:set ts=2 sw=2 et: