Date: Friday, October 14, 2016 @ 08:46:58
  Author: spupykin
Revision: 192250

archrelease: copy trunk to community-any

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

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

Copied: perl-list-utilsby/repos/community-any/PKGBUILD (from rev 192249, 
perl-list-utilsby/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD                              (rev 0)
+++ community-any/PKGBUILD      2016-10-14 08:46:58 UTC (rev 192250)
@@ -0,0 +1,46 @@
+# Maintainer: Maxwell Pray a.k.a. Synthead <synth...@gmail.com>
+
+pkgname=perl-list-utilsby
+_cpanname="List-UtilsBy"
+pkgver=0.10
+pkgrel=1
+pkgdesc="Higher-order list utility functions"
+arch=('any')
+url="http://search.cpan.org/~pevans/$_cpanname";
+license=('GPL' 'PerlArtistic')
+depends=('perl>=5.5.0')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_cpanname-$pkgver.tar.gz";)
+md5sums=('ed80e57fb37bf929c641b8a43470e488')
+
+# 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
+}
+md5sums=('2b4e2ffdfa99ab3eba8e221545c67522')
+
+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
+}

Reply via email to