updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / perl-mongodb / PKGBUILD
blob8f14c0727cafde1b4003b116cedc4bffe25ab01e
1 # Contributor: minimalist <minimalist@lavabit.com>
2 # Generator  : CPANPLUS::Dist::Arch 1.18
4 pkgname='perl-mongodb'
5 pkgver='0.45'
6 pkgrel='1'
7 pkgdesc="Mongo Driver for Perl"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl>=5.8.4' 'perl-any-moose' 'perl-class-method-modifiers')
12 makedepends=('perl-boolean' 'perl-data-types' 'perl-datetime' 'perl-file-slurp' 'perl-json' 'perl-test-exception' 'perl-tie-ixhash' 'perl-try-tiny')
13 url='http://search.cpan.org/dist/MongoDB'
14 source=('http://search.cpan.org/CPAN/authors/id/K/KR/KRISTINA/MongoDB-0.45.tar.gz')
15 md5sums=('087049f2f4a963f929ab69e0c806cff2')
16 sha512sums=('b28ed8f3107958d0b51a2af12345228aa6a0f2b274015442ac84af81abd43f42b867075a40da60c15b563dceba8ea0248880fe94acf32700419dafa7c8f97cae')
17 _distdir="${srcdir}/MongoDB-0.45"
19 build() {
20   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
21       PERL_AUTOINSTALL=--skipdeps                            \
22       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
23       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
24       MODULEBUILDRC=/dev/null
26     cd "$_distdir"
27     /usr/bin/perl Makefile.PL
28     make
29   )
32 check() {
33   cd "$_distdir"
34   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
35     make test
36   )
39 package() {
40   cd "$_distdir"
41   make install
43   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
46 # Local Variables:
47 # mode: shell-script
48 # sh-basic-offset: 2
49 # End:
50 # vim:set ts=2 sw=2 et: