archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-net-dns / trunk / PKGBUILD
blobf9c3ceb9b5b027b27affa899b29509a309bf0d49
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-net-dns
4 pkgver=1.33
5 pkgrel=1
6 pkgdesc="Perl Module: Interface to the DNS resolver"
7 arch=('any')
8 license=('PerlArtistic')
9 url="https://search.cpan.org/dist/Net-DNS/"
10 depends=('perl-digest-hmac' 'perl-net-ip')
11 checkdepends=('perl-test-pod' 'perl-mime-base32' 'perl-net-dns-sec' 'perl-net-libidn2')
12 optdepends=('perl-io-socket-inet6: IPv6 support'
13             'perl-socket6: IPv6 support'
14             'perl-net-libidn2: non-ASCII domain support')
15 options=('!emptydirs')
16 source=("https://cpan.metacpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-$pkgver.tar.gz")
17 sha512sums=('cfad879418386b323464c14fd887120229a2f6b68aeb194aea345d65fe6c14ca58b3692fe89b388cccf0b3876d6eaf284ae8c39832543c46990b636f84aef9f4')
19 build() {
20   cd Net-DNS-$pkgver
21   perl Makefile.PL INSTALLDIRS=vendor
22   make
25 check() {
26   cd Net-DNS-$pkgver
27   make test
30 package() {
31   cd Net-DNS-$pkgver
32   make DESTDIR="$pkgdir" install