# Maintainer: Andrea Dalle Vacche

_realname=List-MoreUtils-XS
pkgname=perl-${_realname}
pkgver=0.430
pkgrel=1
pkgdesc="Provide the stuff missing in List::Util"
arch=('i686' 'x86_64')
license=('GPL' 'PerlArtistic')
url="https://metacpan.org/release/List-MoreUtils"
depends=('perl')
makedepends=('perl-devel')
groups=('perl-modules')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RE/REHSACK/${_realname}-${pkgver}.tar.gz)
sha256sums=('e8ce46d57c179eecd8758293e9400ff300aaf20fefe0a9d15b9fe2302b9cb242')

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

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

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