# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-http-multipartparser
_pkgreal=HTTP-MultiPartParser
_author=CHANSEN
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.02
pkgrel=0
pkgdesc="Perl module for parsing multi-part HTTP responses"
url="https://metacpan.org/release/HTTP-MultiPartParser"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl"
checkdepends="perl-test-deep"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="72a9e92821dae04be63f12b3bbcd22dfbc11ff72ff31b48f2e2bd8fe3095c9cb7992f31deeb1284d7f9986cbcd854f8a21c2110c1d04bd4c3b66307c9d86945d  HTTP-MultiPartParser-0.02.tar.gz"