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

_realname=Data-Munge
pkgname=perl-${_realname}
pkgver=0.111
pkgrel=1
pkgdesc="Various utility functions"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/dist/Data-Munge"
msys2_references=(
  'purl: pkg:cpan/MAUKE/Data-Munge'
)
depends=('perl')
checkdepends=('perl-Test-Warnings')
groups=('perl-modules')
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/M/MA/MAUKE/${_realname}-${pkgver}.tar.gz)
sha256sums=('086face7ee925d49782a0dc6c699d27e1ac3c5cc6dfc6e99d3e7d892d2038d9b')

build() {
  cd ${_realname}-${pkgver}
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd ${_realname}-${pkgver}
  make test
}

package() {
  cd ${_realname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
