aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-net-dns/APKBUILD
blob: 06d1974b621a60d14a93b5d635bf7d2c0d6e3fcb (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                      
                    
                
           
        
                                            
                             
             
                          

                      
          
                          
                                                             

                                                                                         
 





                                                                 
         


                                                               


           
                      

                                                   
                                                                           

 




                      
                                                                                                                                                                  
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:  Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns
_pkgname=Net-DNS
pkgver=1.20
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"
checkdepends="perl-digest-hmac perl-net-libidn perl-test-pod"
source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/${_pkgname}-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

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

check() {
	cd "$builddir"
	make test
}

sha512sums="1599d1b205a4d231a6b917fbc6da150fb77f13f4a16436ed0d8e582f709ab30e3af1435c26b381e8e33a8e015b5ed1f4958dfc3ba6dab58f02564e89c1d3b67e  Net-DNS-1.20.tar.gz"