# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-libwww _realname=libwww-perl pkgver=6.29 pkgrel=0 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="d460c9373259986d80aa47b494b838a8d6c5e7b08d461a69c6cd3837eb3fdbb6b08c636406c3aa8ed3794a7e8300645255839f5eca635626bbe7da3ab61ded3a perl-libwww-6.29.tar.gz"