aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-crypt-smime/APKBUILD
blob: 3dd93a8cdae7e00139852d4d67580154e356ee9f (plain)
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
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-crypt-smime
_pkgreal=Crypt-SMIME
pkgver=0.25
pkgrel=2
pkgdesc="S/MIME message signing, verification, encryption and decryption"
url="https://metacpan.org/release/Crypt-SMIME/"
arch="all"
license="GPL-1.0-or-later Artistic-1.0-Perl"
cpanmakedepends="perl-extutils-cchecker perl-test-exception perl-extutils-pkgconfig"
makedepends="openssl-dev perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MI/MIKAGE/Crypt-SMIME-$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="84f61c247d095ad345a6c736120d11c516e776c5f4a599a4c275481c4bd4597fcb2e0a17da5dc3e111310d3f99f9f39fb0876477098d9e6d9eabd777d145176f  Crypt-SMIME-0.25.tar.gz"