# Maintainer: Felix Yan <felixonmars@gmail.com>
# Conributor: kevin <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=perl-html-tagset
pkgver=3.24
pkgrel=4
pkgdesc="Data tables useful in parsing HTML"
arch=('any')
license=('PerlArtistic')
url="https://search.cpan.org/dist/HTML-Tagset/"
depends=('perl')
options=(!emptydirs)
source=(https://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-$pkgver.tar.gz)
sha256sums=('eb89e145a608ed1f8f141a57472ee5f69e67592a432dcd2e8b1dbb445f2b230b')

build() {
  cd HTML-Tagset-$pkgver
  # install module in vendor directories.
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

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

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

# vim: ts=2 sw=2 et ft=sh
