# $Id: PKGBUILD 159895 2012-05-27 07:43:26Z bluewind $ # Maintainer: kevin # Contributor: Manolis Tzanidakis # Contributor: Firmicus pkgname=perl-html-parser _realname=HTML-Parser pkgver=3.69 pkgrel=2 pkgdesc="Perl HTML parser class" arch=('i686' 'x86_64') license=('PerlArtistic') url="http://search.cpan.org/dist/${_realname}/" depends=('perl-html-tagset' 'perl>=5.12.1') options=(!emptydirs) source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz) md5sums=('d22cc6468ce670a56034be907e4e7c54') build() { cd "${srcdir}/${_realname}-${pkgver}" # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "${srcdir}/${_realname}-${pkgver}" make test } package() { cd "${srcdir}/${_realname}-${pkgver}" make install DESTDIR="${pkgdir}" } # vim: ts=2 sw=2 et ft=sh