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

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

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