blob: de252eebe5313687c16ae7f3b9e855069676b650 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-dns-resolver-programmable
_pkgname=Net-DNS-Resolver-Programmable
pkgver=0.009
pkgrel=1
pkgdesc="Programmable DNS resolver perl class for offline emulation of DNS"
url="https://metacpan.org/pod/Net::DNS::Resolver::Programmable"
arch="noarch"
license="Perl Artistic"
depends="perl perl-net-dns"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="http://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete
}
sha512sums="a9a239ff454ba186e2a00e578615d6b25075f4e1fde548893681c169d04571c1621b023ecd2ccbb95a8fff50d8b811c410212db31a1b78f2d62977a45e90a735 Net-DNS-Resolver-Programmable-0.009.tar.gz"
|