updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-test-minimumversion / PKGBUILD
blobfa94c4050644b075fa7f4c600add84b6921cfae0
1 # CPAN Name  : Test-MinimumVersion
2 # Contributor: Caleb Cushing <xenoterracide@gmail.com>
3 # Generator  : CPANPLUS::Dist::Arch 1.04
4 # Template @ http://github.com/xenoterracide/AURpan/blob/master/perl-test-minimumversion/PKGBUILD.tt
5 # File bugs @ http://github.com/xenoterracide/AURpan/issues
7 pkgname='perl-test-minimumversion'
8 pkgver='0.101080'
9 pkgrel='2'
10 pkgdesc="does your code require newer perl than you think?"
11 arch=('any')
12 url='http://search.cpan.org/dist/Test-MinimumVersion'
13 license=('PerlArtistic' 'GPL')
14 depends=('perl' 'perl-file-find-rule' 'perl-file-find-rule-perl' 'perl-perl-minimumversion>=1.20' 'perl-test-tester' 'perl-yaml-tiny>=1.40')
17 options=('!emptydirs')
19 source=('http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-MinimumVersion-0.101080.tar.gz')
20 md5sums=('2d5f6589462657af863414d6870d9b9c')
22 build() {
23   DIST_DIR="${srcdir}/Test-MinimumVersion-0.101080"
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