# Automatically generated by apkbuild-cpan, template 2
# Contributor: Axel Ulrich <ulrich.axel@gmail.com>
# Maintainer: Axel Ulrich <ulrich.axel@gmail.com>
pkgname=perl-http-multipartparser
_pkgreal=HTTP-MultiPartParser
pkgver=0.02
pkgrel=2
pkgdesc="HTTP MultiPart Parser"
url="https://metacpan.org/release/HTTP-MultiPartParser/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
checkdepends="perl-test-deep"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/HTTP-MultiPartParser-$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="72a9e92821dae04be63f12b3bbcd22dfbc11ff72ff31b48f2e2bd8fe3095c9cb7992f31deeb1284d7f9986cbcd854f8a21c2110c1d04bd4c3b66307c9d86945d  HTTP-MultiPartParser-0.02.tar.gz"
