# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: kevin <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis
# Contributor: Firmicus <francois.archlinux.org>

pkgname=perl-html-parser
pkgver=3.85
pkgrel=1
pkgdesc="Perl HTML parser class"
arch=('x86_64' 'aarch64')
license=('Artistic-1.0-Perl' 'GPL-1.0-or-later')
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=('01d852fbdbafa5ac83e3d1f025ec807ca5e7dd792d7466259afc9cdfbbb73591402df903d383181e84f1b8361171d6e167ffa9d52deff5bfa00fc4c3e54e5e92')

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}"
}
