diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c10c25659e16 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = perl-list-utilsby + pkgdesc = Higher-order list utility functions + pkgver = 0.09 + pkgrel = 2 + url = http://search.cpan.org/~pevans/List-UtilsBy + arch = any + license = GPL + license = PerlArtistic + depends = perl>=5.5.0 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/List-UtilsBy-0.09.tar.gz + md5sums = ed80e57fb37bf929c641b8a43470e488 + +pkgname = perl-list-utilsby + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..73dc0b6c88d4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Maxwell Pray a.k.a. Synthead <synthead@gmail.com> + +pkgname=perl-list-utilsby +_cpanname="List-UtilsBy" +pkgver=0.09 +pkgrel=2 +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 +} + +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 +} |