# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=HTML-Tagset
pkgname=perl-${_realname}
pkgver=3.24
pkgrel=1
pkgdesc="Data tables useful in parsing HTML"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/dist/HTML-Tagset"
msys2_references=(
  "purl: pkg:cpan/PETDANCE/HTML-Tagset"
)
groups=('perl-modules')
depends=('perl>=5.10.0')
replaces=('HTML-Tagset')
provides=('HTML-Tagset')
options=(!emptydirs)
source=(https://www.cpan.org/authors/id/P/PE/PETDANCE/${_realname}-${pkgver}.tar.gz)
sha256sums=('eb89e145a608ed1f8f141a57472ee5f69e67592a432dcd2e8b1dbb445f2b230b')

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