# Packager: Justin Davis <jrcd83@gmail.com>
# $Id: PKGBUILD 111197 2014-05-15 14:16:13Z spupykin $

pkgname=perl-io-all
pkgver=0.61
pkgrel=1
pkgdesc="IO::All of it to Graham and Damian!"
arch=(any)
license=(PerlArtistic GPL)
options=(!emptydirs)
depends=('perl>=5.6.1' 'perl-io-string>=1.08')
url="http://search.cpan.org/dist/IO-All/"
source=("http://search.cpan.org/CPAN/authors/id/F/FR/FREW/IO-All-${pkgver}.tar.gz")
sha1sums=('9ac0ad8ee42253d62ed9de95a228bf3fabc9ed4c')
sha1sums=('3594e932baacbe965e8f23df9fd3b1221bee83de')

build() {
  export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
      PERL_AUTOINSTALL=--skipdeps \
      PERL_MM_OPT="INSTALLDIRS=vendor" \
      PERL_MB_OPT="--installdirs vendor" \
      MODULEBUILDRC=/dev/null

  cd "${srcdir}/IO-All-${pkgver}"
  perl Makefile.PL
  make
}

check() {
  export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
  cd "${srcdir}/IO-All-${pkgver}"
  make test
}

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

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et:
