1 # Maintainer: Petrenko Alexey <alexey-p at uralweb dot ru>
2 pkgname=perl-sub-delete
5 pkgdesc="Perl module enabling one to delete subroutines"
7 url="http://search.cpan.org/~sprout/Sub-Delete-1.00002/"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0')
11 source=("http://search.cpan.org/CPAN/authors/id/S/SP/SPROUT/Sub-Delete-$pkgver.tar.gz")
12 md5sums=('3c0b6adb2a241f626245b72688efd5aa')
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
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