# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-xml-enc
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=XML-Enc
pkgver=0.13
pkgrel=0
pkgdesc="Toolkit to help encrypt and decrypt XML Digital Signatures."
url="https://metacpan.org/release/XML-Enc/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-crypt-openssl-x509 perl-cryptx perl-xml-libxml"
checkdepends="
	perl-file-slurper perl-file-which perl-namespace-autoclean perl-test-lib
	perl-crypt-openssl-guess perl-import-into
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/XML-Enc-$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="
b85edf62a49aa17c24af9a5cdf4a14b24470b4c74727cce733b19c94079cccbc98f16d4c0f42e1b8f6f39c2368e13b52b394801f8ba9c92c3c6417e42f81b3d5  XML-Enc-0.13.tar.gz
"
