[arch-commits] Commit in perl-list-moreutils/repos (testing-any testing-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Mar 30 10:26:09 UTC 2017


    Date: Thursday, March 30, 2017 @ 10:26:08
  Author: felixonmars
Revision: 291847

archrelease: copy trunk to testing-any

Added:
  perl-list-moreutils/repos/testing-any/
  perl-list-moreutils/repos/testing-any/PKGBUILD
    (from rev 291846, perl-list-moreutils/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: perl-list-moreutils/repos/testing-any/PKGBUILD (from rev 291846, perl-list-moreutils/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2017-03-30 10:26:08 UTC (rev 291847)
@@ -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.418
+pkgrel=1
+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=('7ba4395262c4406e822baf40e5a32aa6d93779a56d2567c4920f085ab2580c376db41e2141e4b9b43860d65122ebe73a03dfb0ed76a32f087b05ca7eb90f6d6e')
+
+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