[arch-commits] Commit in perl-list-moreutils/repos (staging-any staging-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Thu Jun 1 11:25:38 UTC 2017
Date: Thursday, June 1, 2017 @ 11:25:38
Author: foutrelis
Revision: 297226
archrelease: copy trunk to staging-any
Added:
perl-list-moreutils/repos/staging-any/
perl-list-moreutils/repos/staging-any/PKGBUILD
(from rev 297224, perl-list-moreutils/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: perl-list-moreutils/repos/staging-any/PKGBUILD (from rev 297224, perl-list-moreutils/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2017-06-01 11:25:38 UTC (rev 297226)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Justin "juster" Davis <jrcd83 at gmail.com>
+# Generator : pbjam 0.01
+
+pkgname=perl-list-moreutils
+pkgver=0.419
+pkgrel=2
+pkgdesc="Provide the stuff missing in List::Util"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl-exporter-tiny')
+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=('d13beb5031d1559c2ec4cb93826e86f0f314c4f10c4fdcac6910de0cb039199599911838eadd499e81cb41025aae2a52d69a259653a9637679a1705c7adcd37a')
+
+build() {
+ 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:
More information about the arch-commits
mailing list