core/perl-libwww/PKGBUILD
2011-03-26 12:24:44 +00:00

86 lines
2.4 KiB
Bash

#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=perl-libwww
_realname=libwww-perl
pkgver=5.836
pkgrel=1
pkgdesc="A set of Perl modules which provides a simple and consistent API to the WWW"
arch=('any')
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl-uri' 'perl-html-parser')
optdepends=('perl-crypt-ssleay: for SSL/TLS support')
options=('!emptydirs')
replaces=('libwww-perl')
provides=(
'perl-bundle-lwp'
'perl-file-listing=5.814'
'perl-html-form=5.829'
'perl-http-config=5.835'
'perl-http-cookies=5.833'
'perl-http-cookies-microsoft'
'perl-http-cookies-netscape=5.832'
'perl-http-daemon=5.827'
'perl-http-date=5.831'
'perl-http-headers=5.835'
'perl-http-headers-auth=5.817'
'perl-http-headers-etag=5.810'
'perl-http-headers-util=5.817'
'perl-http-message=5.835'
'perl-http-negotiate=5.835'
'perl-http-request=5.827'
'perl-http-request-common=5.824'
'perl-http-response=5.836'
'perl-http-status=5.817'
'perl-lwp=5.836'
'perl-lwp-authen-basic'
'perl-lwp-authen-digest'
'perl-lwp-authen-ntlm'
'perl-lwp-conncache=5.810'
'perl-lwp-debug'
'perl-lwp-debugfile'
'perl-lwp-mediatypes=5.835'
'perl-lwp-membermixin'
'perl-lwp-protocol=5.829'
'perl-lwp-protocol-cpan'
'perl-lwp-protocol-data'
'perl-lwp-protocol-file'
'perl-lwp-protocol-ftp'
'perl-lwp-protocol-ghttp'
'perl-lwp-protocol-gopher'
'perl-lwp-protocol-http'
'perl-lwp-protocol-http10'
'perl-lwp-protocol-https'
'perl-lwp-protocol-https10'
'perl-lwp-protocol-loopback'
'perl-lwp-protocol-mailto'
'perl-lwp-protocol-nntp'
'perl-lwp-protocol-nogo'
'perl-lwp-robotua=5.835'
'perl-lwp-simple=5.835'
'perl-lwp-useragent=5.835'
'perl-net-http=5.834'
'perl-net-http-methods=5.834'
'perl-net-http-nb=5.810'
'perl-net-https=5.819'
'perl-www-robotrules=5.832'
'perl-www-robotrules-anydbm_file=5.835'
)
source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
md5sums=('424325417ed5a85700e604317872b588')
build() {
cd ${srcdir}/${_realname}-${pkgver}
# install module in vendor directories.
perl Makefile.PL --aliases INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=${pkgdir} || return 1
# remove perllocal.pod and .packlist
find ${pkgdir} -name perllocal.pod -delete
find ${pkgdir} -name .packlist -delete
}