
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Note - ported straight from Archlinux
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>

_realname=Getopt-ArgvFile
pkgname=perl-${_realname}
pkgver=1.11
pkgrel=1
pkgdesc="Take options from files"
arch=('any')
url="https://metacpan.org/release/Getopt-ArgvFile"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/J/JS/JSTENZEL/Getopt-ArgvFile-${pkgver}.tar.gz")
sha256sums=('3709aa513ce6fd71d1a55a02e34d2f090017d5350a9bd447005653c9b0835b22')

build() {
  cd  Getopt-ArgvFile-${pkgver}
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor 
  make
}

package() {
  cd  Getopt-ArgvFile-${pkgver}
  make install DESTDIR="${pkgdir}"

  find "${pkgdir}" -name '.packlist' -delete
  find "${pkgdir}" -name '*.pod' -delete
}
