updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / perl-ima-dbi / PKGBUILD
blob1ff8456f5ebcf61a5c9ebb2cdbba24ebbbb4eb01
1 # Contributor: Anonymous
2 # Generator  : CPANPLUS::Dist::Arch 1.19
4 pkgname='perl-ima-dbi'
5 pkgver='0.35'
6 pkgrel='1'
7 pkgdesc="Database connection caching and organization"
8 arch=('any')
9 license=('PerlArtistic' 'GPL')
10 options=('!emptydirs')
11 depends=('perl-class-data-inheritable>=0.02' 'perl-dbi>=1.2' 'perl-dbix-contextualfetch>=1')
12 makedepends=()
13 url='http://search.cpan.org/dist/Ima-DBI'
14 source=('http://search.cpan.org/CPAN/authors/id/P/PE/PERRIN/Ima-DBI-0.35.tar.gz')
15 md5sums=('f3c5c0b1fe509556ca35f08aae91b3f5')
16 sha512sums=('9ccf86b440d0969fc6ebbc5d66db0edbff680eaac33d64d75954b5c6a669219ba8a37cb4914aa8f495e96e990c337f550a439e111ec2278fa133956773b55678')
17 _distdir="${srcdir}/Ima-DBI-0.35"
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
42   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
45 # Local Variables:
46 # mode: shell-script
47 # sh-basic-offset: 2
48 # End:
49 # vim:set ts=2 sw=2 et: