# Maintainer: Andrea Dalle Vacche adallevacche@bloomberg.net

_realname=Exporter-Tiny
pkgname=perl-${_realname}
pkgver=1.002002
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="https://metacpan.org/release/Exporter-Tiny"
depends=('perl')
groups=('perl-modules')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/T/TO/TOBYINK/${_realname}-${pkgver}.tar.gz)
sha256sums=('00f0b95716b18157132c6c118ded8ba31392563d19e490433e9a65382e707101')

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

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

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