# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-urn-oasis-saml2
pkgver=0.006
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=URN-OASIS-SAML2
pkgdesc="Constants for urn:oasis SAML2 implementations"
url="https://metacpan.org/release/URN-OASIS-SAML2/"
arch="noarch"
license="BSD-3-Clause"
depends="perl"
checkdepends="perl-test-deep"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/W/WA/WATERKIP/URN-OASIS-SAML2-$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 \
		NO_PACKLIST=1 \
		NO_PERLLOCAL=1
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fb0d5c521e3f2435e11ab55151cf5b4da1a66b26487c0427ef02c73e3b0ff33bea11f6e26c815950f3dd6f87521c9d6a432addd8bb5520bc45ea0773d78406ba  URN-OASIS-SAML2-0.006.tar.gz
"
