# Maintainer: Jesus E. pkgname=perl-list-someutils pkgver=0.58 pkgrel=1 pkgdesc="Perl package that combines List::Util and List::MoreUtils in one bite-sized package" arch=('any') url='https://search.cpan.org/dist/List-SomeUtils' license=('GPL-1') depends=('perl' 'perl-module-implementation') source=(https://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/List-SomeUtils-$pkgver.tar.gz) options=(!emptydirs) sha512sums=('e45f05dbd82914bf804cc1ee00c808b6f8b4f2c80f852db55b3efb13cfe1601c34926e4c7966887a75ef49fd0fb2bd43adf48d12c72687464ece4e2b5a697ff4') build() { cd List-SomeUtils-$pkgver unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps perl Makefile.PL INSTALLDIRS=vendor make } package() { cd List-SomeUtils-$pkgver unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT make install DESTDIR="$pkgdir" find "$pkgdir" -name .packlist -o -name perllocal.pod -delete install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/" }