# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-www-mechanize #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=WWW-Mechanize pkgver=2.17 pkgrel=1 pkgdesc="Handy web browsing in a Perl object" url="https://metacpan.org/release/WWW-Mechanize/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends=" perl perl-libwww perl-html-tree perl-uri perl-html-parser perl-http-cookies perl-http-message perl-html-form " checkdepends=" perl-http-daemon perl-test-fatal perl-test-output perl-test-deep perl-test-warnings perl-path-tiny perl-test-taint perl-libwww perl-test-memory-cycle perl-uri " subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/WWW-Mechanize-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 396dfcb3993bce350a1356e74d8b1441c27217313e9d47e6a74b034315e8df0664abb9ed9e4e46162ea56440718c805fe0a5d895b73906479476b1134819731f WWW-Mechanize-2.17.tar.gz "