# Automatically generated by apkbuild-cpan, template 4 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-www-mechanize pkgver=2.18 pkgrel=0 #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=WWW-Mechanize 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/O/OA/OALDERS/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 \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install } doc() { local file; find "$pkgdir" -name "*.pod" | while read -r file; do amove "${file#"$pkgdir"}" done default_doc } sha512sums=" 6edc2eb69cae856ea53edfe820e8acb07aefea67400d688c12b1de21b159fde6d1c7fd80a846733a01762e5aadb8c92a05231294309d8dc59e2c28bcfca29a5f WWW-Mechanize-2.18.tar.gz "