aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: 343cfe4945dda1a5c4d87c4a892f16625cf72515 (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.01
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="41e59dc2cad35eda357f2f534d94ae8b  Net-DNS-1.01.tar.gz"
sha256sums="8f96b80d46764993dbad92e22cf5fc869ecdc1d09018f2565440d528afd9d92a  Net-DNS-1.01.tar.gz"
sha512sums="68dcb39392dfb90940dac867d7963d3578d86436d50e8b4ced6a9f7b8d79952cbc49bfa413a97d7b53b4140d2d542dedb868b6fe0813296a8cf1620f36053e52  Net-DNS-1.01.tar.gz"