# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-pod-wrap
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Pod-Wrap
pkgver=0.01
pkgrel=1
pkgdesc="Perl module for Pod-Wrap"
url="https://metacpan.org/release/Pod-Wrap/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-pod-parser"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NU/NUFFIN/Pod-Wrap-$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="
bda9b797d592dfd4455ce35c03fcfd5113a8624d6773c505a2239643ee11ecd30a8d77f5749255878a80e7309c1f979abb6f4a400cf5eee6f9a3f2337529d27c  Pod-Wrap-0.01.tar.gz
"
