OCaml 4.14.0 rebuild
[arch-packages.git] / perl-net-dns-resolver-mock / trunk / PKGBUILD
blobe74182a98fbfc80a3369d615825a285f637145a9
1 # Maintainer: Florian Pritz <bluewind@xinu.at>
3 pkgname=perl-net-dns-resolver-mock
4 pkgver=1.20200215
5 pkgrel=5
6 pkgdesc='Mock a DNS Resolver object for testing'
7 arch=(any)
8 license=(PerlArtistic GPL)
9 options=(!emptydirs)
10 depends=(perl-net-dns)
11 makedepends=('perl>=5.6')
12 checkdepends=(perl-test-exception)
13 url=https://metacpan.org/release/Net-DNS-Resolver-Mock
14 source=("https://cpan.metacpan.org/authors/id/M/MB/MBRADSHAW/Net-DNS-Resolver-Mock-$pkgver.tar.gz")
15 md5sums=(95319f092cdfe55fb5a68067d4b29604)
16 sha512sums=(92ac244dc2a7b939b1e8e8c71eb9ce65fdf1494dd08c62e6fc3720ffa82acc7c354bd7dcb8c77d9e52ee132773864b4b3ba869303af7363001ff5e9125c06802)
17 _ddir="Net-DNS-Resolver-Mock-$pkgver"
19 build()
21   cd "$srcdir/$_ddir"
22   export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
23   unset PERL5LIB PERL_MM_OPT
24   /usr/bin/perl Makefile.PL
25   make
28 check()
30   cd "$srcdir/$_ddir"
31   export PERL_MM_USE_DEFAULT=1
32   unset PERL5LIB
33   make test
36 package()
38   cd "$srcdir/$_ddir"
39   make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
42 # Local Variables:
43 # mode: shell-script
44 # sh-basic-offset: 2
45 # End:
46 # vim:set ts=2 sw=2 et: