# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org>
# Contributor: Justin Davis (juster) <jrcd83@gmail.com>

pkgname=perl-sub-install
pkgver=0.929
pkgrel=2
pkgdesc="Install subroutines into packages easily"
arch=(any)
url="https://metacpan.org/release/Sub-Install"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Install-$pkgver.tar.gz)
sha256sums=('80b1e281d8cd3b2b31dac711f5c8a1657a87cd80bbe69af3924bcbeb4e5db077')

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

check() {
  cd Sub-Install-$pkgver
  make test
}

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