# Maintainer: Jesus E. pkgname=perl-module-build pkgver=0.4231 pkgrel=2 pkgdesc="Build and install Perl modules" arch=('any') url='https://metacpan.org/pod/Module::Build' license=('GPL-1') depends=('perl' 'perl-inc-latest') options=('!emptydirs') source=("https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-${pkgver}.tar.gz" 'COPYING') sha512sums=('ee1dc18a7df3fe67e7f954d5e1e071aa0a6f5bce6783b768bceb01f071e64ac8be63f410c932c7c16764e5d4f52fc664ce11a12f26f6afc75a26f79883efad70' 'e239b539f2c46c1ae3da87c4983a0fda67dc8ae622d607b507b5c523af3bdf99e7bea8931e3a7c6007910bfe9e21a761e03e8203de95b5aceea425a97d0a84c9') build() { cd "Module-Build-${pkgver}" perl Build.PL installdirs=vendor perl Build } package() { cd "Module-Build-${pkgver}" perl Build install destdir="${pkgdir}" find "${pkgdir}" \( -name perllocal.pod -o -name .packlist \) -delete install -D -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" }