# Automatically generated by apkbuild-cpan, template 4
# Contributor: Axel Ulrich <ulrich.axel@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-www-form-urlencoded
pkgver=0.26
pkgrel=3
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=WWW-Form-UrlEncoded
pkgdesc="Parser and builder for application/x-www-form-urlencoded"
url="https://metacpan.org/release/WWW-Form-UrlEncoded/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/WWW-Form-UrlEncoded-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
7980b42f53a7801fe02db30b87552ce4d5e7398413640a94d9abad2779085ebfc6208804ed66099161d8c3ba5e47ecb4bf8e8fa1f36f2e7297b864a25f3ac924  WWW-Form-UrlEncoded-0.26.tar.gz
"
