# Maintainer: Ray Donnelly <mingw.android@gmail.com>

_realname=Benchmark-Timer
pkgname=perl-${_realname}
pkgver=0.7112
pkgrel=1
pkgdesc="Provide commonly requested regular expressions"
arch=('any')
url="https://metacpan.org/dist/Benchmark-Timer"
msys2_references=(
  "purl: pkg:cpan/DCOPPIT/Benchmark-Timer"
)
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/D/DC/DCOPPIT/${_realname}-${pkgver}.tar.gz")
sha256sums=('0278447d9ad9d773d59a4ebd6db8afeadde81c8fa5d6a8738f5e7d578e2a402e')

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