# Automatically generated by apkbuild-cpan, template 3
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=perl-json-any
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=JSON-Any
pkgver=1.40
pkgrel=0
pkgdesc="(DEPRECATED) Wrapper Class for the various JSON classes"
url="https://metacpan.org/release/JSON-Any/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
checkdepends="
	perl-cpanel-json-xs
	perl-json-maybexs
	perl-json-xs
	perl-test-warnings
	perl-test-without-module
	perl-test-fatal
	perl-test-needs
	perl-test-requires
	perl-yaml-syck
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/E/ET/ETHER/JSON-Any-$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="
1fd4c892175660fade685d635c090ff76f57ae044a09e4baf84f1096aa1fde80e7d9c8282f47e93b0525fce42520b1512c25b76fec0fb7eca4b597f2b040a797  JSON-Any-1.40.tar.gz
"
