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

_realname=Sub-Install
pkgname=perl-${_realname}
pkgver=0.928
pkgrel=1
pkgdesc="Install subroutines into packages easily"
arch=('any')
url="https://metacpan.org/release/Sub-Install"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Install-${pkgver}.tar.gz")
sha256sums=('61e567a7679588887b7b86d427bc476ea6d77fffe7e0d17d640f89007d98ef0f')

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