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

_realname=inc-latest
pkgname=perl-${_realname}
pkgver=0.500
pkgrel=1
pkgdesc="Build, test, and install Perl modules"
arch=('any')
license=('Apache')
options=('!emptydirs')
depends=('perl>=5.8.8')
url="https://github.com/dagolden/inc-latest"
groups=('perl-modules')
source=("https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/${_realname}-${pkgver}.tar.gz")
sha256sums=('daa905f363c6a748deb7c408473870563fcac79b9e3e95b26e130a4a8dc3c611')

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

check() {
  cd ${srcdir}/${_realname}-${pkgver}
  make test
}

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