# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=perl-html-parser
pkgver=3.83
pkgrel=1
pkgdesc="Perl HTML parser class"
arch=('x86_64')
license=('PerlArtistic')
url="https://search.cpan.org/dist/HTML-Parser/"
depends=('perl-html-tagset' 'perl-http-message' 'perl-uri')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/O/OA/OALDERS/HTML-Parser-$pkgver.tar.gz)
sha512sums=('1d90da3794adf6d226f4d4780dc2b79d0461f3f8d564a56a26f6a2a2cbc2f9175396af9735893181d3b2b21b02136b2995c399b7a520ea5f4ee498b2074291b5')

build() {
  cd HTML-Parser-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd HTML-Parser-$pkgver
  make test
}

package() {
  cd HTML-Parser-$pkgver
  make install DESTDIR="${pkgdir}"
}
