updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / perl-dbix-contextualfetch / PKGBUILD
blob267e7976e450576e9aab573cdedf3ae8b210dc77
1 # Contributor: Ben Webb <bjwebb67 at googlemail dot com>
2 pkgname=perl-dbix-contextualfetch
3 pkgver=1.03
4 pkgrel=1
5 pkgdesc="Add contextual fetches to DBI"
6 arch=(any)
7 url="http://search.cpan.org/~tmtm/DBIx-ContextualFetch-1.03/lib/DBIx/ContextualFetch.pm"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0' 'perl-dbi')
10 options=(!emptydirs)
11 source=(http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/DBIx-ContextualFetch-$pkgver.tar.gz)
12 md5sums=('20a78432ae26b266216b7b30ff7941c3')
14 build() {
15   cd "$srcdir/DBIx-ContextualFetch-$pkgver"
17   # install module in vendor directories.
18   perl Makefile.PL INSTALLDIRS=vendor || return 1
19   make || return 1
20   make install DESTDIR=${pkgdir} || return 1
22   # remove perllocal.pod and .packlist
23   find "$pkgdir" -name perllocal.pod -delete
24   find "$pkgdir" -name .packlist -delete