db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / perl-mail-dkim / repos / extra-any / PKGBUILD
blob27ba854c5c3d02132279a29c801392a1a69a12d7
1 # Maintainer: Florian Pritz <bluewind@xinu.at>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Francois Charette <firmicus@gmx.net>
5 pkgname=perl-mail-dkim
6 pkgver=1.20230212
7 pkgrel=1
8 pkgdesc='Signs/verifies Internet mail with DKIM/DomainKey signatures'
9 arch=(any)
10 license=(PerlArtistic GPL)
11 options=(!emptydirs)
12 depends=(perl-crypt-openssl-rsa perl-mail-authenticationresults perl-mailtools
13          perl-net-dns)
14 checkdepends=('perl>=5.6' perl-net-dns perl-net-dns-resolver-mock
15               perl-test-requiresinternet perl-yaml-libyaml)
16 url=https://metacpan.org/release/Mail-DKIM
17 source=("https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Mail-DKIM-$pkgver.tar.gz")
18 md5sums=(aac5c1ee0482b2f6eb465ef6e633f288)
19 sha512sums=(b34ee931f121104c93973f5cacf551f7583947c82fd272197b970852ac37d910f69d2fd44a4d4614162ee38b54205bb93e0138fdf48cc2c43ab2606040f18d3b)
20 _ddir="Mail-DKIM-$pkgver"
22 build()
24   cd "$srcdir/$_ddir"
25   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
26   unset PERL5LIB PERL_MM_OPT
27   /usr/bin/perl Makefile.PL
28   make
31 check()
33   cd "$srcdir/$_ddir"
34   export PERL_MM_USE_DEFAULT=1
35   unset PERL5LIB
36   make test
39 package()
41   cd "$srcdir/$_ddir"
42   make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
45 # Local Variables:
46 # mode: shell-script
47 # sh-basic-offset: 2
48 # End:
49 # vim:set ts=2 sw=2 et: