# Automatically generated by apkbuild-cpan, template 2
# Contributor: Axel Ulrich <ulrich.axel@gmail.com>
# Maintainer: Axel Ulrich <ulrich.axel@gmail.com>
pkgname=perl-www-form-urlencoded
_pkgreal=WWW-Form-UrlEncoded
pkgver=0.26
pkgrel=2
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"

prepare() {
	default_prepare
	perl Build.PL --installdirs=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

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