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

_realname=Exporter-Lite
pkgname=perl-${_realname}
pkgver=0.08
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=('c05b3909af4cb86f36495e94a599d23ebab42be7a18efd0d141fc1586309dac2')

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"
}
