aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: 3a49c92d9a593b65106226e732ced7a9586ec134 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns
_realname=Net-DNS
pkgver=1.06
pkgrel=0
pkgdesc="Perl interface to the DNS resolver"
url="http://www.net-dns.org/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://www.cpan.org/authors/id/N/NL/NLNETLABS/${_realname}-$pkgver.tar.gz"
source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_realname-$pkgver.tar.gz"

_builddir="$srcdir/$_realname-$pkgver"
build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
        # creates file collision among perl modules
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="ed17abd6e7e3ba0a8db42649e34a53ae  Net-DNS-1.06.tar.gz"
sha256sums="a3587b780ca36a8255180ac723d4f6e11407504b5b9a18e0ec098a11c218a51e  Net-DNS-1.06.tar.gz"
sha512sums="af2bd83f001616eabe7b06337da6433355b1634a1cca7eb096ec454d8b48496fe5c3ada242d75c1b258d328f8eee3836bfcd30e8a40f59aaa97b0eb49e5f92ce  Net-DNS-1.06.tar.gz"