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

_realname=Data-Munge
pkgname=perl-${_realname}
pkgver=0.097
pkgrel=1
pkgdesc="Various utility functions"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/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=('d63469cab6ceb74247c844301c7d38ecd7d63dc6954a0aa359efbc48353bdd65')

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

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

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