updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / perl-module-load-conditional / PKGBUILD
blob647d05a4373f9375e45eff590759414764b4b7bc
1 # CPAN Name  : Module-Load-Conditional
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 0.20
4 pkgname='perl-module-load-conditional'
5 pkgver='0.38'
6 pkgrel='1'
7 pkgdesc="Looking up module information / loading at runtime"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl' 'perl-module-corelist>=2.22')
13 url='http://search.cpan.org/dist/Module-Load-Conditional'
15 source=('http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/Module-Load-Conditional-0.38.tar.gz')
16 md5sums=('ddc4284f922b525a6c14769694498cf4')
18 build() {
19   DIST_DIR="${srcdir}/Module-Load-Conditional-0.38"
20   export PERL_MM_USE_DEFAULT=1
21   {
22         cd "$DIST_DIR" &&
23     perl Makefile.PL INSTALLDIRS=vendor &&
24     make &&
25     make test &&
26     make DESTDIR="$pkgdir" install;
27   } || return 1;
29   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete