# Automatically generated by apkbuild-cpan, template 3 # Contributor: Timothy Legge # Maintainer: Timothy Legge pkgname=perl-http-tiny-mech _pkgreal=HTTP-Tiny-Mech pkgver=1.001002 pkgrel=2 pkgdesc="Wrap a WWW::Mechanize instance in an HTTP::Tiny compatible interface." url="https://metacpan.org/release/HTTP-Tiny-Mech/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-http-message perl-www-mechanize" checkdepends="perl-http-message" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/K/KE/KENTNL/HTTP-Tiny-Mech-$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="0791e827924abbf979c677f0f759de6b5942eb7df53e25de83d4f10d87bb4a7c176d7c1d87621c56d22fc1877552f7c927f40896782544ae10410214d364a967 HTTP-Tiny-Mech-1.001002.tar.gz"