updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-test-mockbject / PKGBUILD
blob96b62de72c8458afaf9c7f1fe971325e43f884fd
1 # Contributor: Christian Sturm <reezer@reezer.org>
2 pkgname=perl-test-mockbject
3 pkgver=1.20110612
4 pkgrel=1
5 pkgdesc="Perl extension for emulating troublesome interfaces"
6 arch=(any)
7 url="http://search.cpan.org/dist/Test-MockObject/"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0')
10 options=(!emptydirs)
11 install=
12 source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/Test-MockObject-$pkgver.tar.gz)
13 md5sums=('3a41a320e55de85bb66ed561f1c877dd')
15 build() {
16   cd "$srcdir/Test-MockObject-$pkgver"
18   # install module in vendor directories.
19   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
20   make || return 1
21   make install DESTDIR="$pkgdir/" || return 1
23   # remove perllocal.pod and .packlist
24   find "$pkgdir" -name perllocal.pod -delete
25   find "$pkgdir" -name .packlist -delete
28 # vim:set ts=2 sw=2 et: