# Maintainer: Peter Budai <peterbudai@hotmail.com>

_realname=Test-Base
pkgname=perl-${_realname}
pkgver=0.89
pkgrel=1
pkgdesc="A Data Driven Testing Framework"
arch=('any')
url="https://metacpan.org/release/Test-Base"
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-Spiffy' 'perl-Text-Diff')
options=('!emptydirs')
groups=('perl-modules')
source=("https://www.cpan.org/authors/id/I/IN/INGY/${_realname}-${pkgver}.tar.gz")
sha256sums=('2794a1aaaeb1d3a287dd2c7286258663796562f7db9ccc6b424bc4f1de8ad014')

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

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

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