blob: fd4234f355a478eecaf71c2559ab3b7b3d756fac (
plain)
1 # Description: The World-Wide Web library for Perl.
2 # URL: https://metacpan.org/release/libwww-perl
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: p5-html-parser p5-uri
5
6 name=p5-libwww
7 version=6.36
8 release=1
9 source=(https://cpan.metacpan.org/authors/id/E/ET/ETHER/libwww-perl-$version.tar.gz)
10
11 build() {
12 cd libwww-perl-$version
13 yes | perl Makefile.PL -n
14 make
15 make DESTDIR=$PKG install
16
17 # Remove perlcrap
18 find $PKG -type f \( \
19 -name '.packlist' -or \
20 -name '*.bs' -or \
21 -name 'autosplit.ix' -or \
22 -name 'perllocal.pod' \) -delete
23
24 # Remove empty directories
25 find $PKG -depth -empty -exec rm -rf {} \;
26 }
|