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

_realname=Module-Runtime
pkgname=perl-${_realname}
pkgver=0.016
pkgrel=1
pkgdesc="runtime module handling"
arch=('any')
url="https://search.cpan.org/dist/Module-Runtime/"
license=('PerlArtistic' 'GPL')
depends=('perl>=5.8.0' 'perl-Module-Build')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Module-Runtime-${pkgver}.tar.gz)
sha512sums=('64a362ee897646173dbbdd8794f863d93379d45d7ac20d3ae890d77b4ec3f5e36aaff66c41b4a6a33b28bf492216283528755550ab09e466ceafb4f0cfbaeb9e')

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