Date: Monday, April 2, 2018 @ 00:26:02 Author: muflone Revision: 313791
archrelease: copy trunk to community-testing-any Added: perl-test-memory-cycle/repos/community-testing-any/ perl-test-memory-cycle/repos/community-testing-any/PKGBUILD (from rev 313790, perl-test-memory-cycle/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: perl-test-memory-cycle/repos/community-testing-any/PKGBUILD (from rev 313790, perl-test-memory-cycle/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2018-04-02 00:26:02 UTC (rev 313791) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ +# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com> + +pkgname=perl-test-memory-cycle +_perl_namespace=Test +_perl_module=Memory-Cycle +pkgver=1.06 +pkgrel=1 +pkgdesc="Verifies code hasn't left circular references" +arch=('any') +url="https://metacpan.org/release/${_perl_namespace}-${_perl_module}" +license=('PerlArtistic' 'GPL') +depends=('perl-devel-cycle' 'perl-padwalker' 'perl-cgi') +source=("https://www.cpan.org/modules/by-module/${_perl_namespace}/${_perl_namespace}-${_perl_module}-${pkgver}.tar.gz") +sha256sums=('9d53ddfdc964cd8454cb0da4c695b6a3ae47b45839291c34cb9d8d1cfaab3202') +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 +}