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

_realname=Test2-Suite
pkgname=perl-${_realname}
pkgver=0.000141
pkgrel=1
pkgdesc="Distribution with a rich set of tools built upon the Test2 framework"
arch=('any')
url="https://metacpan.org/release/Test2-Suite"
groups=('perl-modules')
depends=('perl-Module-Pluggable' 'perl-Importer' 'perl-Scope-Guard' 'perl-Sub-Info'
         'perl-Term-Table' 'perl-Test-Simple>=1.302176')
license=('PerlArtistic')
source=("https://cpan.metacpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('d1a79383bef83648992e43b8d8e9bcba2b588ae1c0933436e4a1fdc09ab7686f')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

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