[arch-commits] Commit in perl-list-utilsby/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon May 24 08:31:05 UTC 2021


    Date: Monday, May 24, 2021 @ 08:31:05
  Author: felixonmars
Revision: 943897

archrelease: copy trunk to community-staging-any

Added:
  perl-list-utilsby/repos/community-staging-any/
  perl-list-utilsby/repos/community-staging-any/PKGBUILD
    (from rev 943895, perl-list-utilsby/trunk/PKGBUILD)

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

Copied: perl-list-utilsby/repos/community-staging-any/PKGBUILD (from rev 943895, perl-list-utilsby/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-05-24 08:31:05 UTC (rev 943897)
@@ -0,0 +1,44 @@
+# Maintainer: Maxwell Pray a.k.a. Synthead <synthead at gmail.com>
+
+pkgname=perl-list-utilsby
+_cpanname="List-UtilsBy"
+pkgver=0.11
+pkgrel=5
+pkgdesc="Higher-order list utility functions"
+arch=('any')
+url="https://search.cpan.org/~pevans/$_cpanname"
+license=('GPL' 'PerlArtistic')
+depends=('perl>=5.5.0')
+options=('!emptydirs')
+# Function to change to the working directory and set
+# environment variables to override undesired options.
+prepareEnvironment() {
+	cd "$srcdir/$_cpanname-$pkgver"
+	export \
+		PERL_MM_USE_DEFAULT=1 \
+		PERL_AUTOINSTALL=--skipdeps \
+		PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='"$pkgdir"'" \
+		PERL_MB_OPT="--installdirs vendor --destdir '"$pkgdir"'" \
+		MODULEBUILDRC=/dev/null
+}
+source=("https://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_cpanname-$pkgver.tar.gz")
+sha256sums=('faddf43b4bc21db8e4c0e89a26e5f23fe626cde3491ec651b6aa338627f5775a')
+
+build() {
+	prepareEnvironment
+	/usr/bin/perl Makefile.PL
+	make
+}
+
+check() {
+	prepareEnvironment
+	make test
+}
+
+package() {
+	prepareEnvironment
+	make install
+
+	# Remove "perllocal.pod" and ".packlist".
+	find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}



More information about the arch-commits mailing list