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

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

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