aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-crypt-openssl-verifyx509/APKBUILD
blob: 680758f86ad9af050fc7bbe9809951eba3289967 (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
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-crypt-openssl-verifyx509
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Crypt-OpenSSL-VerifyX509
pkgver=0.14
pkgrel=0
pkgdesc="simple certificate verification"
url="https://metacpan.org/release/Crypt-OpenSSL-VerifyX509/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-crypt-openssl-x509"
makedepends="perl-dev openssl-dev perl-test-exception perl-file-slurp"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TI/TIMLEGGE/Crypt-OpenSSL-VerifyX509-$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="d4176ced5d706f182a23e115d8c7c6dcaf4610d4491b78c1dd53f57df8f126adf0e81f5b61b10ac7b285800f46d4a248a5a353e495dd1469b4f2aaf14347cc2a  Crypt-OpenSSL-VerifyX509-0.14.tar.gz"