aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns-resolver-mock/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-10-20 07:41:35 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-10-20 08:29:54 +0000
commit5b527ac54e549ab4fe72384737e0d3ea22fb7fcc (patch)
tree86f4797f6cde7efe1ad4c10e516d1210bc1dfd41 /main/perl-net-dns-resolver-mock/APKBUILD
parent15114951caa20ad10a855713904c4a4e926b915f (diff)
downloadaports-5b527ac54e549ab4fe72384737e0d3ea22fb7fcc.tar.gz
aports-5b527ac54e549ab4fe72384737e0d3ea22fb7fcc.tar.bz2
aports-5b527ac54e549ab4fe72384737e0d3ea22fb7fcc.tar.xz
main/perl-net-dns-resolver-mock: new aport
Diffstat (limited to 'main/perl-net-dns-resolver-mock/APKBUILD')
-rw-r--r--main/perl-net-dns-resolver-mock/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/perl-net-dns-resolver-mock/APKBUILD b/main/perl-net-dns-resolver-mock/APKBUILD
new file mode 100644
index 0000000000..0ad5537604
--- /dev/null
+++ b/main/perl-net-dns-resolver-mock/APKBUILD
@@ -0,0 +1,48 @@
+# Automatically generated by apkbuild-cpan, template 2
+# Contributor:
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=perl-net-dns-resolver-mock
+_pkgreal=Net-DNS-Resolver-Mock
+pkgver=1.20170814
+pkgrel=0
+pkgdesc="Mock a DNS Resolver object for testing"
+url="http://search.cpan.org/dist/Net-DNS-Resolver-Mock/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-net-dns"
+cpanmakedepends=""
+cpancheckdepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+checkdepends="$cpancheckdepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MB/MBRADSHAW/$_pkgreal-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make test
+}
+
+sha512sums="a1394b83d12dea9d34aea7b1b7378db1e0cce955359051e41bbaa4d656f9a603ee998b6a9f29a71524b8abde94619624b681fc72f620ec23eb471a3f06cde82f Net-DNS-Resolver-Mock-1.20170814.tar.gz"