diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-30 19:34:41 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-30 19:34:41 (GMT) |
commit | b70d287cc0202d48c25cf63f3067e504b317878b (patch) | |
tree | 7077b6f834169d0d9a0396a62748cc589e479c74 /abs/core | |
parent | 1acaa22b54ed0b9e5bbc101c731d6b8ac731f584 (diff) | |
download | linhes_pkgbuild-b70d287cc0202d48c25cf63f3067e504b317878b.zip linhes_pkgbuild-b70d287cc0202d48c25cf63f3067e504b317878b.tar.gz linhes_pkgbuild-b70d287cc0202d48c25cf63f3067e504b317878b.tar.bz2 |
perl-list-utilsby: initial
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/perl_modules/perl-list-utilsby/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-list-utilsby/PKGBUILD b/abs/core/perl_modules/perl-list-utilsby/PKGBUILD new file mode 100644 index 0000000..74c937d --- /dev/null +++ b/abs/core/perl_modules/perl-list-utilsby/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com> + +pkgname=perl-list-utilsby +_cpanname="List-UtilsBy" +pkgver=0.11 +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') +# 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=("http://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 +} |