# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-return-value
pkgver=1.666005
pkgrel=5
pkgdesc="Polymorphic Return Values "
arch=('any')
url="https://search.cpan.org/dist/Return-Value"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/R/RJ/RJBS/Return-Value-$pkgver.tar.gz)
sha256sums=('8e2260a96531e93686200b9c8850ebe005d88ce369ff6bc70ff1a7405b7550ac')

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

package() {
  cd  "$srcdir"/Return-Value-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
