pkgname=perl-xml-parser
pkgver=2.47
pkgdesc="Expat-based XML parser module for perl"
license=('GPL' 'PerlArtistic')
homepage="https://github.com/chorny/XML-Parser"
sources=("XML-Parser-${pkgver}.tar.gz")
urls=("https://cpan.metacpan.org/authors/id/T/TO/TODDR/${sources[0]}")
md5sums=("89a8e82cfd2ad948b349c0a69c494463")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  perl Makefile.PL
  make
}

src_check() {
  make test
}

src_install() {
  make DESTDIR="${pkgdir}" install
}

