archrelease: copy trunk to extra-x86_64
[arch-packages.git] / perl-net-http / repos / extra-any / PKGBUILD
blob377066f9aadd51c7c4bb1765ff6103d82220ddbc
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Justin "juster" Davis <jrcd83@gmail.com>
4 pkgname=perl-net-http
5 pkgver=6.22
6 pkgrel=2
7 pkgdesc="Low-level HTTP connection (client)"
8 arch=('any')
9 url=https://search.cpan.org/dist/Net-HTTP
10 license=('PerlArtistic' 'GPL')
11 options=('!emptydirs')
12 depends=('perl')
13 checkdepends=('perl-uri')
14 conflicts=('perl-libwww<6')
15 source=("https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-$pkgver.tar.gz")
16 sha512sums=('8d0af85baee8a3b257995c6dd277c2eb578d1feeec89f3e4be0548959d2cf07934764d9d16a542a50f72a4611e3f4b6335ff7e969a28cd74fbb0ec3961588131')
18 build() {
19     export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
20       PERL_AUTOINSTALL=--skipdeps                            \
21       PERL_MM_OPT="INSTALLDIRS=vendor"     \
22       PERL_MB_OPT="--installdirs vendor" \
23       MODULEBUILDRC=/dev/null
25     cd Net-HTTP-${pkgver}
26     /usr/bin/perl Makefile.PL
27     make
30 check() {
31     export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
32     cd Net-HTTP-${pkgver}
33     make test
36 package() {
37     cd Net-HTTP-${pkgver}
38     make DESTDIR="$pkgdir" install
41 # Local Variables:
42 # mode: shell-script
43 # sh-basic-offset: 2
44 # End:
45 # vim:set ts=2 sw=2 et: