summaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns-resolver-programmable/APKBUILD
blob: 3e60a6aa1a5f7afbebb457512a6d36bb2a4ba437 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-dns-resolver-programmable
pkgver=0.003
pkgrel=0
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"
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
}

md5sums="8d44bf331d6115e7fb4ea21f6cf4b96b  Net-DNS-Resolver-Programmable-v0.003.tar.gz"