archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-net-dns / repos / extra-any / PKGBUILD
blob5365534a69f78bfe9794c81e5085b2c3bcf115d7
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=perl-net-dns
4 pkgver=1.37
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=('fd6e04f7f9628a2937ac360d6939f8d6ce866f6b536e78af5879f1a97fc3b38dc3c12223739323613791c603b701f2419635865ccb03c7cacdd5e85559536559')
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