aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns-resolver-programmable/APKBUILD
blob: 8c4842a57fd63c27664ea7b8da57fdc94334d00a (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-dns-resolver-programmable
pkgver=0.003
pkgrel=2
pkgdesc="programmable DNS resolver perl class for offline emulation of DNS"
url="http://search.cpan.org/search?query=Net::DNS::Resolver::Programmable&mode=all"
arch="noarch"
license="Perl Artistic"
depends="perl perl-net-dns"
makedepends="perl-dev perl-module-build"
install=
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v$pkgver.tar.gz"

_builddir="$srcdir"/Net-DNS-Resolver-Programmable-v$pkgver
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete
}

sha512sums="65e3cfaff11172af7b22e203eb3acd8a0d85b4aeffc0426f3c69cd09c8cdadcd4341a2186bd58128985fd5a8ba4c695570dbfda8c4010d5a3c5b06f4e2de002f  Net-DNS-Resolver-Programmable-v0.003.tar.gz"