aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-authenticationresults/APKBUILD
blob: d766d7c7abbfcdd02133350abf717b136949c9c4 (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
35
36
37
38
39
40
# Automatically generated by apkbuild-cpan, template 2
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-mail-authenticationresults
_pkgreal=Mail-AuthenticationResults
pkgver=1.20180923
pkgrel=0
pkgdesc="Object Oriented Authentication-Results Headers"
url="https://metacpan.org/release/Mail-AuthenticationResults/"
arch="noarch"
license="Artistic-1.0-Perl"
cpandepends=""
cpanmakedepends="perl-test-exception"
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Mail-AuthenticationResults-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

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

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

sha512sums="e8a33593261c59b8c1c91d6e655f8a3f6112974169dde9689788a7e0e83a0e66e6a5872ac56d7882e324c914bbb869b3f8c7b330ccf42765633fd475ef68f3be  Mail-AuthenticationResults-1.20180923.tar.gz"