# Maintainer: Ray Donnelly <mingw.android@gmail.com>

_realname=Exporter-Lite
pkgname=perl-${_realname}
pkgver=0.09
pkgrel=1
pkgdesc="lightweight exporting of functions and variables"
arch=('any')
url="https://metacpan.org/author/NEILB${_realname}-${pkgver}"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/N/NE/NEILB/${_realname}-${pkgver}.tar.gz")
sha256sums=('79d8b14fd5013922c63e850f15bf51059f2502404535eb6690ef23612c2a198d')

prepare() {
  cd "$srcdir/${_realname}-${pkgver}"
}

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

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