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

_realname=TAP-Harness-Archive
pkgname=perl-${_realname}
pkgver=0.18
pkgrel=2
pkgdesc="Create an archive of TAP test results"
arch=('any')
url="https://metacpan.org/dist/TAP-Harness-Archive"
msys2_references=(
  "purl: pkg:cpan/SCHWIGON/TAP-Harness-Archive"
)
license=('GPL' 'PerlArtistic')
depends=('perl-YAML-Tiny' 'perl')
makedepends=('perl-Module-Build')
options=('!emptydirs')
groups=('perl-modules')
source=(https://www.cpan.org/authors/id/S/SC/SCHWIGON/${_realname}-${pkgver}.tar.gz)
sha256sums=('423ae8fcdddfe7fb44cdd7e2331f4fd35e443543017827e3da3c9f40945c4a64')

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

check() {
  cd ${_realname}-${pkgver}
  ./Build test
}

package() {
  cd ${_realname}-${pkgver}
  ./Build install destdir="${pkgdir}"
}
