aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-crypt-openssl-verifyx509/APKBUILD
blob: 3b158a7e1867a9191410c9ff37fe27e31b04772a (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.15
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="cc5c45b18adde84c782143105d72bf0df89322cdb5c9b5e76f6696c300ba9899d692851a4be40b4ce62acf6de846cb36f87d83bc9f8ea67c1e37d8b9387ad873  Crypt-OpenSSL-VerifyX509-0.15.tar.gz"