summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/perl-net-dns-resolver-programmable/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/perl-net-dns-resolver-programmable/APKBUILD b/main/perl-net-dns-resolver-programmable/APKBUILD
new file mode 100644
index 000000000..3e60a6aa1
--- /dev/null
+++ b/main/perl-net-dns-resolver-programmable/APKBUILD
@@ -0,0 +1,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"