updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / perl-if / PKGBUILD
blob1328529873e6456e9cfb7a8f2a41a8f8dcf3c438
1 # Contributor: Justin Davis <jrcd83@gmail.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.08
3 pkgname='perl-if'
4 pkgver='0.0601'
5 pkgrel='1'
6 pkgdesc="use a Perl module if a condition holds"
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl')
11 makedepends=()
12 url='http://search.cpan.org/dist/if'
13 source=('http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/if-0.0601.tar.gz')
14 md5sums=('3a19abc96d20a47f6dafd7b29ff5383e')
16 build() {
17   PERL=/usr/bin/perl
18   DIST_DIR="${srcdir}/if-0.0601"
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 "$DIST_DIR" &&
26     $PERL Makefile.PL &&
27     make &&
28     make test &&
29     make install;
30   } || return 1;
32   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete