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

_realname=ExtUtils-Depends
pkgname=perl-${_realname}
pkgver=0.8002
pkgrel=1
pkgdesc="The Perl depends module"
arch=('any')
url="https://metacpan.org/dist/ExtUtils-Depends"
msys2_references=(
  'purl: pkg:cpan/ETJ/ExtUtils-Depends'
)
groups=('perl-modules')
license=('PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/E/ET/ETJ/${_realname}-${pkgver}.tar.gz")
sha256sums=('02b9a46450050ce19b325b23e46bb4ec644229d7f2d95044f67a86d8efacdc29')

prepare() {
  cd ${_realname}-${pkgver}
}

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

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

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