# $Id: PKGBUILD 53970 2009-10-04 13:19:56Z andrea $ # Maintainer: Andrea Scarpino # Contributor: Kevin Piche # Contributor: Manolis Tzanidakis pkgname=perl-libwww _realname=libwww-perl pkgver=5.832 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' 'perl>=5.10.0') options=('!emptydirs') replaces=('libwww-perl') provides=('libwww-perl') source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz) md5sums=('c9f55afa68cdbe53cae34a80a2aea1b5') build() { cd ${srcdir}/${_realname}-${pkgver} # install module in vendor directories. perl Makefile.PL 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 }