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

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun May 29 11:05:59 UTC 2022


    Date: Sunday, May 29, 2022 @ 11:05:58
  Author: foutrelis
Revision: 1214249

archrelease: copy trunk to community-staging-any

Added:
  perl-test-most/repos/community-staging-any/
  perl-test-most/repos/community-staging-any/PKGBUILD
    (from rev 1214248, perl-test-most/trunk/PKGBUILD)

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

Copied: perl-test-most/repos/community-staging-any/PKGBUILD (from rev 1214248, perl-test-most/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2022-05-29 11:05:58 UTC (rev 1214249)
@@ -0,0 +1,43 @@
+# Maintainer: Caleb Maclennan< caleb at alerque.com>
+# Contributor: GPP <gergan at gmail.com>
+
+_cpan=Test-Most
+pkgname=perl-${_cpan,,}
+pkgver=0.37
+pkgrel=5
+pkgdesc='Most commonly needed test functions and features'
+arch=(any)
+url=https://metacpan.org/release/$_cpan
+license=(GPL PerlArtistic)
+_perldeps=(exception-class
+           test-deep
+           test-differences
+           test-exception
+           test-warn)
+depends=(perl
+         "${_perldeps[@]/#/perl-}")
+options=(!emptydirs)
+_archive="$_cpan-$pkgver"
+source=("https://cpan.perl.org/modules/by-module/${_cpan%-*}/$_archive.tar.gz")
+sha256sums=('533370141eb9f18cf4ac380f6ded2ab57802a6e184008a80fd2304bfcc474fc7')
+
+build() {
+	cd "$_archive"
+	unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+	export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+	perl Makefile.PL
+	make
+}
+
+check() {
+	cd "$_archive"
+	unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+	export PERL_MM_USE_DEFAULT=1
+	make test
+}
+
+package() {
+	cd "$_archive"
+	unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+	make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+}



More information about the arch-commits mailing list