# 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.005
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="
fad74c91097d2dcde81ffa346cf7f77e4d48818f063b4412c1c55c9c60407354b4c9fcba1229ae2b15bd1339b92d5aec353f5b8957b2fb16227943d3bc502b39  URN-OASIS-SAML2-0.005.tar.gz
"
