# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-module-cpmfile
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Module-cpmfile
pkgver=0.006
pkgrel=0
pkgdesc="Parse cpmfile"
url="https://metacpan.org/release/Module-cpmfile/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-yaml-pp"
makedepends="perl-module-build-tiny"
checkdepends="perl-test2-suite perl-module-cpanfile"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/S/SK/SKAJI/Module-cpmfile-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build test
}

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

sha512sums="
8a8f579ff1ca153a7d05593536ff60d0a1eb5a756dafdebca07211594f8761437ba4702baf658f904b6ea4dc09ca0153a635c742f4fbf7e50a2696556a77b60a  Module-cpmfile-0.006.tar.gz
"
