PKGBUILDs/community/perl-www-mechanize/PKGBUILD
2009-10-09 21:15:33 -05:00

25 lines
922 B
Bash

# $Id: PKGBUILD 3696 2009-10-07 09:43:35Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>
pkgname=perl-www-mechanize
pkgver=1.60
pkgrel=1
pkgdesc="Automates web page form & link interaction"
arch=(any)
url="http://search.cpan.org/dist/WWW-Mechanize"
license=('GPL' 'PerlArtistic')
depends=('perl-libwww' 'perl-html-parser' 'perl-uri' 'perl-http-response-encoding' \
'perl-http-server-simple' 'perl-test-warn')
options=('!emptydirs')
source=(http://www.cpan.org/authors/id/P/PE/PETDANCE/WWW-Mechanize-$pkgver.tar.gz)
md5sums=('bd3bf56f28881c5363d1c599ff43a632')
build() {
cd $startdir/src/WWW-Mechanize-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
make || return 1
make install DESTDIR=$startdir/pkg || return 1
find $startdir/pkg -name '.packlist' -delete
find $startdir/pkg -name '*.pod' -delete
}