# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-libwww _realname=libwww-perl pkgver=6.25 pkgrel=1 pkgdesc="Perl module - World Wide Web library" url="http://search.cpan.org/~mschilli" arch="noarch" license="GPL PerlArtistic" depends="perl-http-date perl-http-cookies perl-net-http perl-http-daemon perl-html-parser perl-file-listing perl-www-robotrules perl-http-negotiate perl-uri perl-http-message perl-lwp-mediatypes perl-encode-locale perl-try-tiny" makedepends="perl-dev perl-test-fatal perl-test-requiresinternet" install= subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/libwww-perl/libwww-perl/archive/v$pkgver.tar.gz" builddir="$srcdir/$_realname-$pkgver" build() { cd $builddir PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 make || return 1 } check() { cd $builddir make test || return 1 } package() { cd $builddir make DESTDIR="$pkgdir" install # creates file collision among perl modules find "$pkgdir" -name perllocal.pod -delete } sha512sums="0eee5767ddee58892bd853aca74ffa0afd27c215a3d70073af583714daab54e095e0c6f2a826503e96b77517230bc02e07d71d3406c84667171e66158ef0573a perl-libwww-6.25.tar.gz"