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

_realname=Test-Pod
pkgname=perl-${_realname}
pkgver=1.52
pkgrel=2
pkgdesc="Check for POD errors in files"
arch=('any')
url="https://metacpan.org/dist/Test-Pod"
msys2_references=(
  "purl: pkg:cpan/ETHER/Test-Pod"
)
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-Module-Build')
options=('!emptydirs')
groups=('perl-modules')
source=(https://www.cpan.org/authors/id/E/ET/ETHER/${_realname}-${pkgver}.tar.gz)
sha256sums=('60a8dbcc60168bf1daa5cc2350236df9343e9878f4ab9830970a5dde6fe8e5fc')

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

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

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