archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-mail-spf / repos / extra-any / PKGBUILD
blobc112daf40aa5191acf458570478fd6e136040c38
1 # Maintainer: Dale Blount <dale@archlinux.org>
2 # Contributor: Dale Blount <dale@archlinux.org>
3 # Contributor: François Charette <francois.archlinux.org>
5 pkgname=perl-mail-spf
6 pkgver=2.9.0
7 pkgrel=10
8 pkgdesc="Perl module that provides SPF support"
9 arch=('any')
10 license=('custom')
11 url="https://search.cpan.org/dist/Mail-SPF/"
12 depends=('perl-error' 'perl-netaddr-ip' 'perl-uri' 'perl-net-dns' 'perl')
13 makedepends=('perl-module-build' 'perl-net-dns-resolver-programmable')
14 conflicts=('perl-mail-spf-query')
15 options=('!emptydirs')
16 source=("https://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v${pkgver}.tar.gz")
17 sha256sums=('61cb5915f1c7acc7a931ffc1bfc1291bdfac555e2a46eb2391b995ea9ecb6162')
19 prepare() {
20   cd Mail-SPF-v${pkgver}
21   sed -i 's|/usr/sbin|/usr/bin|' Build.PL
24 build() {
25   cd Mail-SPF-v${pkgver}
26   perl Makefile.PL INSTALLDIRS=vendor
27   make
30 check() {
31   cd Mail-SPF-v${pkgver}
32   make test
35 package() {
36   cd Mail-SPF-v${pkgver}
37   make DESTDIR="${pkgdir}" install
38   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"