archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-mail-spf / trunk / PKGBUILD
blob24d6260f1432855974775f58df59e88083e0510c
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=9
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 md5sums=('664e20d79c87fa505080f362e827dace')
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"