# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-libwww _realname=libwww-perl pkgver=6.38 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" checkdepends="perl-test-needs perl-test-leaktrace" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/libwww-perl-$pkgver.tar.gz" builddir="$srcdir/$_realname-$pkgver" prepare() { default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor rm -v t/base/protocols/nntp.t } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { cd $builddir export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { cd $builddir make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="7f1332ea3b72ce01d4e20532cefa9229d0727c56d1a068f76983dd39a7d292b0a77fde93946ca16f2969e1a55b8ce8ba4cf22cd74bfe8cfda92204e3549b5cd0 libwww-perl-6.38.tar.gz"