# $Id: PKGBUILD 99516 2013-10-29 10:34:44Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-www-mechanize
pkgver=1.73
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' 'perl-html-form')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/WWW-Mechanize-$pkgver.tar.gz)
md5sums=('de0a9c528c12793c881151301bc14d1a')

build() {
  cd  $srcdir/WWW-Mechanize-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/WWW-Mechanize-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
