# Automatically generated by apkbuild-cpan, template 3
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=perl-data-peek
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Data-Peek
pkgver=0.52
pkgrel=2
pkgdesc="Modified and extended debugging facilities"
url="https://metacpan.org/release/Data-Peek/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
checkdepends="perl-test-warnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/Data-Peek-$pkgver.tgz"
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="
6212a6b203276114b268ad82a292808cd4a95f6a8d6981558e76360b10dd43d37005be5edf0243f538b72928e22b861b73734a82ee6cdb88cafc39f45b5f4b58  Data-Peek-0.52.tgz
"
