updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / perl-test-tempdir / PKGBUILD
blobebd1c5fac82fce0d481ad4f06fe9afa582862e6d
1 # Contributor: Justin Davis <jrcd83@gmail.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.06
3 pkgname='perl-test-tempdir'
4 pkgver='0.05'
5 pkgrel='1'
6 pkgdesc="Temporary files support for testing."
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl' 'perl-file-nfslock' 'perl-moose>=0.87' 'perl-moosex-types-path-class' 'perl-namespace-clean>=0.08' 'perl-path-class' 'perl-sub-exporter' 'perl-test-use-ok')
11 url='http://search.cpan.org/dist/Test-TempDir'
12 source=('http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Test-TempDir-0.05.tar.gz')
13 md5sums=('45ad0f38221daa3f4ea346a52e1170a8')
15 build() {
16   PERL=/usr/bin/perl
17   DIST_DIR="${srcdir}/Test-TempDir-0.05"
18   export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
19     PERL_AUTOINSTALL=--skipdeps                            \
20     PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
21     PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
22     MODULEBUILDRC=/dev/null
24   { cd "$DIST_DIR" &&
25     $PERL Makefile.PL &&
26     make &&
27     make test &&
28     make install;
29   } || return 1;
31   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete