2016-03-08 22:36:16 +11:00
|
|
|
# Description: The World-Wide Web library for Perl.
|
|
|
|
# URL: https://metacpan.org/release/libwww-perl
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2008-04-11 16:56:01 +10:00
|
|
|
# Packager: James Mills, prologic at shortcircuit dot net dot au
|
|
|
|
# Depends on: p5-html-parser p5-uri
|
2006-11-16 03:27:10 +10:00
|
|
|
|
2016-03-08 23:18:38 +11:00
|
|
|
name=p5-libwww
|
2016-03-08 22:36:16 +11:00
|
|
|
version=6.15
|
2006-11-16 03:27:10 +10:00
|
|
|
release=1
|
2016-03-08 22:36:16 +11:00
|
|
|
source=(https://cpan.metacpan.org/authors/id/E/ET/ETHER/libwww-perl-$version.tar.gz)
|
2006-11-16 03:27:10 +10:00
|
|
|
|
|
|
|
build() {
|
2008-04-11 16:56:01 +10:00
|
|
|
cd libwww-perl-$version
|
|
|
|
yes | perl Makefile.PL -n
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2008-07-14 00:03:32 +10:00
|
|
|
|
|
|
|
# Remove perlcrap
|
|
|
|
find $PKG -type f \( \
|
|
|
|
-name '.packlist' -or \
|
|
|
|
-name '*.bs' -or \
|
|
|
|
-name 'autosplit.ix' -or \
|
|
|
|
-name 'perllocal.pod' \) -delete
|
|
|
|
|
|
|
|
# Remove empty directories
|
|
|
|
find $PKG -depth -empty -exec rm -rf {} \;
|
2006-11-16 03:27:10 +10:00
|
|
|
}
|