# Maintainer: Andrea Dalle Vacche

_realname=List-MoreUtils
pkgname=perl-${_realname}
pkgver=0.428
pkgrel=1
pkgdesc="List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util"
arch=('any')
license=('GPL' 'PerlArtistic')
url="http://search.cpan.org/~rehsack/List-MoreUtils"
depends=('perl' 'perl-Exporter-Tiny' 'perl-List-MoreUtils-XS')
groups=('perl-modules')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RE/REHSACK/${_realname}-${pkgver}.tar.gz)
sha256sums=('713e0945d5f16e62d81d5f3da2b6a7b14a4ce439f6d3a7de74df1fd166476cc2')

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

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

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