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

_realname=Capture-Tiny
pkgname=perl-${_realname}
pkgver=0.48
pkgrel=1
pkgdesc="Capture STDOUT and STDERR from Perl, XS or external programs"
arch=('any')
license=('PerlArtistic' 'GPL')
depends=('perl')
groups=('perl-modules')
url="https://metacpan.org/release/Capture-Tiny"
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/D/DA/DAGOLDEN/${_realname}-${pkgver}.tar.gz")
sha256sums=('6c23113e87bad393308c90a207013e505f659274736638d8c79bac9c67cc3e19')

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

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