aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-net-saml2/APKBUILD
blob: 8891b2698f2b199b4435aeabf8191489dd102471 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-net-saml2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-Saml2
pkgver=0.20
pkgrel=0
pkgdesc="SAML bindings and protocol implementation"
url="https://metacpan.org/release/Net-Saml2/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-crypt-openssl-x509 perl-crypt-openssl-random perl-moosex-types-common perl-crypt-openssl-dsa perl-xml-tidy perl-xml-generator perl-file-slurp perl-uri perl-xml-xpath perl-class-accessor perl-xml-writer perl-crypt-openssl-verifyx509 perl-xml-canonicalizexml perl-http-message perl-datetime-format-xsd perl-crypt-openssl-rsa perl-moosex-types-datetime perl-libwww perl-moosex-types-uri"
makedepends="perl-dev perl-test-pod-coverage perl-test-notabs"
checkdepends="perl-dancer perl-yaml"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Net-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
	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="5417b0efe145232bd2f9a2711c72b19eed24e63dff7ae61afb14f1143671046eecc46ac8f5e2c97acb0cb268b47e1891a93fe4b9727de59662d5c7eb2d962e2e  Net-Saml2-0.20.tar.gz"