aboutsummaryrefslogblamecommitdiffstats
path: root/main/perl-net-dns-resolver-programmable/APKBUILD
blob: 803228106af8809d85bef0fd0cb5e34cf2eaf26a (plain) (tree)
1
2
3
4
5
6
7
8


                                                    

                                      
        

                                                                           


                           
                                        
                          
                                                                                    
 
                                    

         


                                           

 




                      
           
                      
                                      
                                                                               

 
                                                                                                                                                                                         
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-dns-resolver-programmable
_pkgname=Net-DNS-Resolver-Programmable
pkgver=0.009
pkgrel=2
pkgdesc="Programmable DNS resolver perl class for offline emulation of DNS"
url="https://metacpan.org/pod/Net::DNS::Resolver::Programmable"
arch="noarch"
license="Perl Artistic"
depends="perl perl-net-dns"
makedepends="perl-dev perl-module-build"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	perl Makefile.PL INSTALLDIRS=vendor
	make
}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name '.packlist' -o -name 'perllocal.pod' \) -delete
}

sha512sums="a9a239ff454ba186e2a00e578615d6b25075f4e1fde548893681c169d04571c1621b023ecd2ccbb95a8fff50d8b811c410212db31a1b78f2d62977a45e90a735  Net-DNS-Resolver-Programmable-0.009.tar.gz"