aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-dns-resolver-mock/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/perl-net-dns-resolver-mock/APKBUILD')
-rw-r--r--main/perl-net-dns-resolver-mock/APKBUILD32
1 files changed, 11 insertions, 21 deletions
diff --git a/main/perl-net-dns-resolver-mock/APKBUILD b/main/perl-net-dns-resolver-mock/APKBUILD
index bbc77fe368..a1ad864883 100644
--- a/main/perl-net-dns-resolver-mock/APKBUILD
+++ b/main/perl-net-dns-resolver-mock/APKBUILD
@@ -1,45 +1,35 @@
-# Automatically generated by apkbuild-cpan, template 2
-# Contributor:
+# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-net-dns-resolver-mock
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-DNS-Resolver-Mock
-pkgver=1.20171219
+pkgver=1.20200215
pkgrel=0
pkgdesc="Mock a DNS Resolver object for testing"
-url="https://metacpan.org/release/Net-DNS-Resolver-Mock"
+url="https://metacpan.org/release/Net-DNS-Resolver-Mock/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
-cpandepends="perl-net-dns"
-depends="$cpandepends"
+depends="perl perl-net-dns"
makedepends="perl-dev"
+checkdepends="perl-test-exception"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Net-DNS-Resolver-Mock-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
-prepare() {
- default_prepare
-
- cd "$builddir"
+build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ make
}
-build() {
- cd "$builddir"
+check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- make
+ make test
}
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="4c028edc162e7dbf5804d19f35e761086933bf1fbfc84182ad2ab0f3db356ff3f30c280e734e4c85f737ff377350149c559459c0c77d36ef3313c96c1bf046c8 Net-DNS-Resolver-Mock-1.20171219.tar.gz"
+sha512sums="92ac244dc2a7b939b1e8e8c71eb9ce65fdf1494dd08c62e6fc3720ffa82acc7c354bd7dcb8c77d9e52ee132773864b4b3ba869303af7363001ff5e9125c06802 Net-DNS-Resolver-Mock-1.20200215.tar.gz"