# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-html-form
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=HTML-Form
pkgver=6.11
pkgrel=1
pkgdesc="Class that represents an HTML form element"
url="https://metacpan.org/release/HTML-Form/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-uri perl-html-parser perl-http-message"
checkdepends="perl-http-message perl-test-warnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SI/SIMBABQUE/HTML-Form-$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="
9ac4eba3d723fccbd9a686959288e1c9479f80c4fd8fd8d85739d7c11b402af813a883cd341ebac8593efe3b6d0ea9f6dbd7fec6b1966c15bccc1b9a2ce0dfeb  HTML-Form-6.11.tar.gz
"
