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

_realname=Importer
pkgname=perl-${_realname}
pkgver=0.026
pkgrel=1
pkgdesc="Alternative but compatible interface to modules that export symbols"
arch=('any')
url="https://metacpan.org/release/Importer"
groups=('perl-modules')
license=('PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('e08fa84e13cb998b7a897fc8ec9c3459fcc1716aff25cc343e36ef875891b0ef')

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

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

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

  find ${pkgdir} -name '.packlist' -delete
  find ${pkgdir} -name '*.pod' -delete
}
