[arch-commits] Commit in perl-net-http/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Aug 1 09:43:45 UTC 2018


    Date: Wednesday, August 1, 2018 @ 09:43:45
  Author: felixonmars
Revision: 330115

archrelease: copy trunk to staging-any

Added:
  perl-net-http/repos/staging-any/
  perl-net-http/repos/staging-any/PKGBUILD
    (from rev 330113, perl-net-http/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: perl-net-http/repos/staging-any/PKGBUILD (from rev 330113, perl-net-http/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2018-08-01 09:43:45 UTC (rev 330115)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83 at gmail.com>
+
+pkgname=perl-net-http
+pkgver=6.18
+pkgrel=2
+pkgdesc="Low-level HTTP connection (client)"
+arch=('any')
+url=http://search.cpan.org/dist/Net-HTTP
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+checkdepends=('perl-uri')
+conflicts=('perl-libwww<6')
+source=("http://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-$pkgver.tar.gz")
+sha512sums=('89cf197c8717fd368a892b0d37efccb7c2aa46ece7851906282f33aa5a2105809fa0b917c56f94d217731568c20e2ff86eb455607d0bc24eb6d093c3fbab185d')
+
+build() {
+    export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
+      PERL_AUTOINSTALL=--skipdeps                            \
+      PERL_MM_OPT="INSTALLDIRS=vendor"     \
+      PERL_MB_OPT="--installdirs vendor" \
+      MODULEBUILDRC=/dev/null
+
+    cd Net-HTTP-${pkgver}
+    /usr/bin/perl Makefile.PL
+    make
+}
+
+check() {
+    export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    cd Net-HTTP-${pkgver}
+    make test
+}
+
+package() {
+    cd Net-HTTP-${pkgver}
+    make DESTDIR="$pkgdir" install
+}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list