aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-spf/APKBUILD
blob: dafd18cc76f96e4a9bab62fe64b472369e764bbe (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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-mail-spf
_realname=Mail-SPF
pkgver=2.9.0
pkgrel=3
pkgdesc="An object-oriented implementation of Sender Policy Framework"
url="http://search.cpan.org/~jmehnle/Mail-SPF-v2.006/"
arch="noarch"
license="GPL PerlArtistic"
depends="perl perl-error perl-net-dns perl-uri perl-netaddr-ip
	perl-net-dns-resolver-programmable"
makedepends="perl-dev perl-module-build"
install=
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JM/JMEHNLE/mail-spf/$_realname-v$pkgver.tar.gz"

_builddir="$srcdir/$_realname-v$pkgver"
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl
	rm -fr "$pkgdir"/usr/share/perl5
	rm -fr "$pkgdir"/usr/bin "$pkgdir"/usr/sbin
}

sha512sums="22bf98c4981f121ed85bb5cbc1ebcb2607ada5052bcea0dd8de692e3473a2ebdd3066acd944bb12f0efe64605e4bf7dc695a1549b7608239d0efc059339df60b  Mail-SPF-v2.9.0.tar.gz"