summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/perl_modules/perl-net-http/PKGBUILD45
1 files changed, 21 insertions, 24 deletions
diff --git a/abs/core/perl_modules/perl-net-http/PKGBUILD b/abs/core/perl_modules/perl-net-http/PKGBUILD
index 89eb246..46596c4 100644
--- a/abs/core/perl_modules/perl-net-http/PKGBUILD
+++ b/abs/core/perl_modules/perl-net-http/PKGBUILD
@@ -1,45 +1,42 @@
-# Packager: Justin "juster" Davis <jrcd83@gmail.com>
-# $Id: PKGBUILD 150758 2012-02-21 20:00:38Z juster $
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83@gmail.com>
pkgname=perl-net-http
-pkgver=6.03
+pkgver=6.18
pkgrel=1
pkgdesc="Low-level HTTP connection (client)"
-arch=(any)
-license=(PerlArtistic GPL)
-options=(!emptydirs)
-depends=('perl>=5.6.2')
+arch=('any')
+url=http://search.cpan.org/dist/Net-HTTP
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+checkdepends=('perl-uri')
conflicts=('perl-libwww<6')
-url=https://metacpan.org/release/Net-HTTP
-source=("http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Net-HTTP-${pkgver}.tar.gz")
-md5sums=(86957940d96649ca782b686686b82e7b)
-sha512sums=(a9ffbe5a4c6e1633b130549bb292c9dce093436e0d80d3a9b2ac95c3d1f5d16d734388a1d52094cb34194a7b8973bfa24c549cced4fdc42f36ec08876f551a32)
-_distdir="${srcdir}/Net-HTTP-${pkgver}"
+source=("http://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-$pkgver.tar.gz")
+sha512sums=('89cf197c8717fd368a892b0d37efccb7c2aa46ece7851906282f33aa5a2105809fa0b917c56f94d217731568c20e2ff86eb455607d0bc24eb6d093c3fbab185d')
-build()
-(
+build() {
export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ PERL_MM_OPT="INSTALLDIRS=vendor" \
+ PERL_MB_OPT="--installdirs vendor" \
MODULEBUILDRC=/dev/null
- cd "$_distdir"
+ cd Net-HTTP-${pkgver}
/usr/bin/perl Makefile.PL
make
-)
+}
-check()
-(
+check() {
export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
- cd "$_distdir"
+ cd Net-HTTP-${pkgver}
make test
-)
+}
package() {
- cd "$_distdir"
+ cd Net-HTTP-${pkgver}
make DESTDIR="$pkgdir" install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables: