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

_realname=Test2-Suite
pkgname=perl-${_realname}
pkgver=0.000163
pkgrel=1
pkgdesc="Distribution with a rich set of tools built upon the Test2 framework"
arch=('any')
url="https://metacpan.org/dist/Test2-Suite"
msys2_references=(
  'purl: pkg:cpan/EXODIST/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=('spdx:Artistic-1.0-Perl' 'spdx:GPL-1.0-or-later')
source=("https://cpan.metacpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('e336c2d92d43c4f0068aa0d67019d56723ab82471e1bd9028300bb6a1602c0a9')

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}"
}
