diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/perl_modules/perl-list-moreutils/PKGBUILD | 52 |
1 files changed, 38 insertions, 14 deletions
diff --git a/abs/core/perl_modules/perl-list-moreutils/PKGBUILD b/abs/core/perl_modules/perl-list-moreutils/PKGBUILD index a7d80bb..5dc037d 100644 --- a/abs/core/perl_modules/perl-list-moreutils/PKGBUILD +++ b/abs/core/perl_modules/perl-list-moreutils/PKGBUILD @@ -1,22 +1,46 @@ -# Maintainer: François Charette <firmicus ατ gmx δοτ net> +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Justin "juster" Davis <jrcd83@gmail.com> +# Generator : pbjam 0.01 pkgname=perl-list-moreutils -pkgver=0.22 +pkgver=0.428 pkgrel=1 pkgdesc="Provide the stuff missing in List::Util" -arch=('i686' 'x86_64') -url="http://search.cpan.org/~VPARSEVAL/List-MoreUtils" -license=('GPL' 'PerlArtistic') -depends=('perl>=5.10.0') +arch=('any') +license=('PerlArtistic' 'GPL') options=('!emptydirs') -source=(http://www.cpan.org/authors/id/V/VP/VPARSEVAL/List-MoreUtils-$pkgver.tar.gz) -md5sums=('3a6ec506f40662ab1296c48c5eb72016') +depends=('perl-exporter-tiny' 'perl-list-moreutils-xs') +url=http://search.cpan.org/dist/List-MoreUtils +source=("http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/List-MoreUtils-${pkgver}.tar.gz") +sha512sums=('f7e11f10f1d7bd3b8f9f8bc2fc325e1a9230056f68591da624aed01fb4e4cbac20caeae0c3e2aa3acc8b71febd6d4149284367f051d3c1e608e3a4ca8b62dbd8') build() { - cd $startdir/src/List-MoreUtils-$pkgver - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make install DESTDIR=$startdir/pkg || return 1 - find $startdir/pkg -name '.packlist' -delete - find $startdir/pkg -name '*.pod' -delete + cd "${srcdir}/List-MoreUtils-${pkgver}" + perl Makefile.PL INSTALLDIRS=vendor + make } + +check() { + cd "${srcdir}/List-MoreUtils-${pkgver}" + make test +} + +package() { + cd "${srcdir}/List-MoreUtils-${pkgver}" + make DESTDIR="$pkgdir" install + +# template start; name=perl-binary-module-dependency; version=1; +if [[ $(find "$pkgdir/usr/lib/perl5/" -name "*.so") ]]; then + _perlver_min=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]);') + _perlver_max=$(perl -e '$v = $^V->{version}; print $v->[0].".".($v->[1]+1);') + depends+=("perl>=$_perlver_min" "perl<$_perlver_max") +fi +# template end; +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |