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

_realname=Module-Runtime
pkgname=perl-${_realname}
pkgver=0.018
pkgrel=1
pkgdesc="runtime module handling"
arch=('any')
url="https://metacpan.org/dist/Module-Runtime"
msys2_references=(
  'purl: pkg:cpan/HAARG/Module-Runtime'
)
license=('PerlArtistic' 'GPL')
depends=('perl>=5.8.0' 'perl-Module-Build')
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/H/HA/HAARG/Module-Runtime-${pkgver}.tar.gz)
sha512sums=('67dcf637576570c7ab92d0d0a54f61918b9102e7e53b077dfbfdd907e9377ecdb124ac62224372eb5dbf1c02fb07086c6d8458b73fe0a01dd23926c91b11898d')

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

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

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