diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-05-30 17:50:53 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-05-30 17:50:53 (GMT) |
commit | 3c8e9ef2c04af9d9ed6cced7b8b799e9ffbeb414 (patch) | |
tree | fb1a8d23c451dc01a618453fa58b559904b73755 /abs/core | |
parent | 930bcc37279832279b555184ff50b1198a77eadc (diff) | |
download | linhes_pkgbuild-3c8e9ef2c04af9d9ed6cced7b8b799e9ffbeb414.zip linhes_pkgbuild-3c8e9ef2c04af9d9ed6cced7b8b799e9ffbeb414.tar.gz linhes_pkgbuild-3c8e9ef2c04af9d9ed6cced7b8b799e9ffbeb414.tar.bz2 |
perl-list-moreutils-xs: initial
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/perl_modules/perl-list-moreutils-xs/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-list-moreutils-xs/PKGBUILD b/abs/core/perl_modules/perl-list-moreutils-xs/PKGBUILD new file mode 100644 index 0000000..4256815 --- /dev/null +++ b/abs/core/perl_modules/perl-list-moreutils-xs/PKGBUILD @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Justin "juster" Davis <jrcd83@gmail.com> +# Generator : pbjam 0.01 + +pkgname=perl-list-moreutils-xs +pkgver=0.428 +pkgrel=1 +pkgdesc="Provide the stuff missing in List::Util" +url='http://search.cpan.org/dist/List-MoreUtils-XS' +arch=('x86_64') +license=('PerlArtistic' 'GPL') +options=('!emptydirs') +depends=('perl') +source=("http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/List-MoreUtils-XS-${pkgver}.tar.gz") +sha512sums=('a608568e3c4a2e160e4f9afa26640be5b97ec83e301a6b81849e37951698b9423c0a969d7e8797a49b4fb6c5123780630a3726c64713922b90b21b947682c3dd') + +build() { + cd "${srcdir}/List-MoreUtils-XS-${pkgver}" + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd "${srcdir}/List-MoreUtils-XS-${pkgver}" + make test +} + +package() { + cd "${srcdir}/List-MoreUtils-XS-${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: |