aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-dkim/APKBUILD
blob: 5c2a9c3873aa58fd0020641e290c68a6ba28ea26 (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
37
38
39
40
41
42
43
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-mail-dkim
_pkgname=Mail-DKIM
pkgver=1.20200907
pkgrel=1
pkgdesc="Signs/verifies Internet mail with DKIM/DomainKey signatures"
url="https://metacpan.org/pod/Mail::DKIM"
arch="noarch"
license="Artistic-Perl-1.0 GPL+"
depends="perl perl-net-dns perl-net-ip perl-mailtools perl-crypt-openssl-rsa
	perl-yaml-libyaml perl-net-dns-resolver-mock
	perl-mail-authenticationresults
	"
makedepends="perl-dev"
checkdepends="perl-test-requiresinternet"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Mail-DKIM-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	cd "$builddir"
	make test
}

sha512sums="1bfdd97ca49abfd3ae6f13bc8ede8706531801e078351ac41a3a6172b9e65249d247e38a95c53eb60781b5f38b971a5acf9c8b98948e9c4d7a427a525ee231cb  Mail-DKIM-1.20200907.tar.gz"