1 # Contributor: Heikki Mehtänen <heikki at mehtanen dot fi>
7 pkgdesc="Perl/CPAN File::List extension for crawling directory trees and compiling lists of files"
9 url="http://search.cpan.org/dist/${_realname}/"
10 license=('PerlArtistic')
11 depends=('perl>=5.10.0')
13 source=(http://search.cpan.org/CPAN/authors/id/D/DO/DOPACKI/${_realname}-$pkgver.tar.gz)
14 md5sums=('0fdefea8d6dffabc3c2244ea0c627c50')
18 # quick, magic sed to fix bug with symlinks in List.pm
19 # http://rt.cpan.org/Public/Bug/Display.html?id=41493
20 sed -i -e '73s/if (-d "$base\/$entry") {/if (-d "$base\/$entry" and not -l "$base\/$entry") {/' List.pm
22 # install module in vendor directories
23 perl Makefile.PL INSTALLDIRS=vendor || return 1
25 make DESTDIR=$pkgdir install || return 1
27 # remove perllocal.pod and .packlist
28 find $pkgdir -name perllocal.pod -delete
29 find $pkgdir -name .packlist -delete