blob: 89eb246be7f03077de64a97e3a725165c340ebdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Packager: Justin "juster" Davis <jrcd83@gmail.com>
# $Id: PKGBUILD 150758 2012-02-21 20:00:38Z juster $
pkgname=perl-net-http
pkgver=6.03
pkgrel=1
pkgdesc="Low-level HTTP connection (client)"
arch=(any)
license=(PerlArtistic GPL)
options=(!emptydirs)
depends=('perl>=5.6.2')
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}"
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'" \
MODULEBUILDRC=/dev/null
cd "$_distdir"
/usr/bin/perl Makefile.PL
make
)
check()
(
export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
cd "$_distdir"
make test
)
package() {
cd "$_distdir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
|