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

_realname=Regexp-Common
pkgname=perl-${_realname}
pkgver=2017060201
pkgrel=1
pkgdesc="Provide commonly requested regular expressions"
arch=('any')
url="https://metacpan.org/author/ABIGAIL${_realname}-${pkgver}"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/A/AB/ABIGAIL/${_realname}-${pkgver}.tar.gz")
sha256sums=('ee07853aee06f310e040b6bf1a0199a18d81896d3219b9b35c9630d0eb69089b')

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