archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-net-dns-resolver-mock / repos / extra-any / PKGBUILD
blobd7c18117a71ca8c3e3dbc3860692345086b0a796
1 # Maintainer: Florian Pritz <bluewind@xinu.at>
3 pkgname=perl-net-dns-resolver-mock
4 pkgver=1.20230216
5 pkgrel=1
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=(d191b6b1eb40497024988f500fe65ed4)
16 sha512sums=(832fdae88ef915251bd71ebacd3223cd8adb269cbb2e9724c617b31cfa65c92471ce93273070143c629e0a3f3bda54bcd5d55ae78fd60eae6c929bb7da7e1290)
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: