# Automatically generated by apkbuild-cpan, template 2 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-www-mechanize _pkgreal=WWW-Mechanize pkgver=1.94 pkgrel=0 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" cpandepends="perl-libwww perl-html-tree perl-uri perl-html-parser perl-http-cookies perl-http-message perl-html-form" cpancheckdepends="perl-cgi perl-http-daemon perl-test-fatal perl-test-output perl-test-deep perl-http-server-simple perl-test-warnings" depends="$cpandepends" makedepends="perl-dev" checkdepends="$cpancheckdepends" 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 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="6b165bdb5578f1269f532b2f31f821d0b56c8d9ccbfd9dfd1d51d6eed429eb3520e584b286f05d24a9ad87e3e21d5260a14ea0a2ff4e89d5135553150500942d WWW-Mechanize-1.94.tar.gz"