[arch-commits] Commit in perl-test-mock-guard/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon May 24 11:20:23 UTC 2021


    Date: Monday, May 24, 2021 @ 11:20:23
  Author: felixonmars
Revision: 944368

archrelease: copy trunk to community-staging-any

Added:
  perl-test-mock-guard/repos/community-staging-any/
  perl-test-mock-guard/repos/community-staging-any/PKGBUILD
    (from rev 944367, perl-test-mock-guard/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: perl-test-mock-guard/repos/community-staging-any/PKGBUILD (from rev 944367, perl-test-mock-guard/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-05-24 11:20:23 UTC (rev 944368)
@@ -0,0 +1,35 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
+
+pkgname=perl-test-mock-guard
+pkgver=0.10
+pkgrel=4
+pkgdesc='Simple mock test library using RAII.'
+arch=('any')
+url='https://metacpan.org/release/Test-Mock-Guard'
+license=('GPL')
+depends=('perl-class-load')
+options=('!emptydirs' purge)
+source=("http://search.cpan.org/CPAN/authors/id/X/XA/XAICRON/Test-Mock-Guard-${pkgver}.tar.gz")
+b2sums=('7217eeef03920bdc96ae703607dbcd034b2a495b90296db9d2024e290cbc17e98f20f25f5d3f7fbdf3005b6db66476742fd5af94a954d35075d53f52f2e4fe45')
+
+build() {
+  cd Test-Mock-Guard-${pkgver}
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  export PERL_MM_USE_DEFAULT=1 MODULEBUILDRC=/dev/null
+  perl Build.PL
+  ./Build
+}
+
+check() {
+  cd Test-Mock-Guard-${pkgver}
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  export PERL_MM_USE_DEFAULT=1
+  ./Build test
+}
+
+package() {
+  cd Test-Mock-Guard-${pkgver}
+  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
+  ./Build install --installdirs=vendor --destdir "${pkgdir}"
+}



More information about the arch-commits mailing list