Date: Sunday, April 1, 2018 @ 22:54:23 Author: muflone Revision: 313769
archrelease: copy trunk to community-testing-any Added: perl-config-general/repos/community-testing-any/ perl-config-general/repos/community-testing-any/PKGBUILD (from rev 313768, perl-config-general/trunk/PKGBUILD) ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: perl-config-general/repos/community-testing-any/PKGBUILD (from rev 313768, perl-config-general/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2018-04-01 22:54:23 UTC (rev 313769) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ +# Contributor: Brian Bidulock <bidul...@openss7.org> +# Contributor: Jason St. John <jstjohn .. purdue . edu> + +pkgname=perl-config-general +_perl_namespace=Config +_perl_module=General +pkgver=2.63 +pkgrel=3 +pkgdesc="Generic Config Module" +arch=('any') +url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}" +license=('PerlArtistic' 'GPL') +depends=('perl') +source=("https://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz") +sha256sums=('0a9bf977b8aabe76343e88095d2296c8a422410fd2a05a1901f2b20e2e1f6fad') +options=('!emptydirs') + +build() { + cd "${_perl_namespace}-${_perl_module}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps + perl Makefile.PL + make +} + +check() { + cd "${_perl_namespace}-${_perl_module}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 + make test +} + +package() { + cd "${_perl_namespace}-${_perl_module}-${pkgver}" + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + make pure_install INSTALLDIRS=vendor DESTDIR="${pkgdir}" + # Delete unuseful files + find "${pkgdir}" -name '.packlist' -delete +}