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

_realname=Sub-Exporter-Progressive
pkgname=perl-${_realname}
pkgver=0.001013
pkgrel=1
pkgdesc="Only use Sub::Exporter if you need it"
arch=('any')
url="https://search.cpan.org/dist/Sub-Exporter-Progressive"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://search.cpan.org/CPAN/authors/id/F/FR/FREW/Sub-Exporter-Progressive-${pkgver}.tar.gz")
sha256sums=('d535b7954d64da1ac1305b1fadf98202769e3599376854b2ced90c382beac056')

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

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

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