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

_realname=Test-Requires
pkgname=perl-${_realname}
pkgver=0.11
pkgrel=2
pkgdesc="Checks to see if the module can be loaded"
arch=('any')
url="https://metacpan.org/dist/Test-Requires"
msys2_references=(
  'purl: pkg:cpan/TOKUHIROM/Test-Requires'
)
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-${pkgver}.tar.gz")
sha256sums=('4b88de549597eecddf7c3c38a4d0204a16f59ad804577b671896ac04e24e040f')

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