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

_realname=Pod-Parser
pkgname=perl-${_realname}
pkgver=1.63
pkgrel=1
pkgdesc="Modules for parsing/translating POD format documents"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Pod-Parser"
depends=('perl')
groups=('perl-modules')
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/M/MA/MAREKR/${_realname}-${pkgver}.tar.gz)
sha256sums=('dbe0b56129975b2f83a02841e8e0ed47be80f060686c66ea37e529d97aa70ccd')

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

check() {
  cd ${_realname}-${pkgver}
  make test
}

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