updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-sub-delete / PKGBUILD
blob6ec3eaf2f60013d10e0f67d8daca34755645bab1
1 # Maintainer: Petrenko Alexey <alexey-p at uralweb dot ru>
2 pkgname=perl-sub-delete
3 pkgver=1.00002
4 pkgrel=1
5 pkgdesc="Perl module enabling one to delete subroutines"
6 arch=('any')
7 url="http://search.cpan.org/~sprout/Sub-Delete-1.00002/"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0')
10 options=(!emptydirs)
11 source=("http://search.cpan.org/CPAN/authors/id/S/SP/SPROUT/Sub-Delete-$pkgver.tar.gz")
12 md5sums=('3c0b6adb2a241f626245b72688efd5aa')
14 build() {
15   cd "$srcdir/Sub-Delete-$pkgver"
17   # install module in vendor directories.
18   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
19   make || return 1
20   make test || 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