[arch-commits] Commit in perl-params-validate/repos (4 files)

Felix Yan felixonmars at archlinux.org
Sat Aug 26 18:00:38 UTC 2017


    Date: Saturday, August 26, 2017 @ 18:00:38
  Author: felixonmars
Revision: 254256

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  perl-params-validate/repos/community-staging-i686/
  perl-params-validate/repos/community-staging-i686/PKGBUILD
    (from rev 254255, perl-params-validate/trunk/PKGBUILD)
  perl-params-validate/repos/community-staging-x86_64/
  perl-params-validate/repos/community-staging-x86_64/PKGBUILD
    (from rev 254255, perl-params-validate/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   35 +++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

Copied: perl-params-validate/repos/community-staging-i686/PKGBUILD (from rev 254255, perl-params-validate/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-08-26 18:00:38 UTC (rev 254256)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-params-validate
+pkgver=1.28
+pkgrel=4
+pkgdesc="Validate sub params against a spec"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/Params-Validate"
+license=('GPL' 'PerlArtistic')
+depends=('perl' 'perl-module-implementation')
+makedepends=('perl-module-build')
+options=('!emptydirs')
+source=("http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-${pkgver}.tar.gz")
+sha256sums=('dde5ec77993a9cac300c53053588a50b9c5aeadb77626fe8bc9c2d9b29aaff77')
+
+build() {
+  cd  Params-Validate-${pkgver}
+  perl ./Build.PL --installdirs=vendor
+  ./Build
+}
+package() {
+  cd  Params-Validate-${pkgver}
+  ./Build install --destdir="$pkgdir"
+  find "$pkgdir" -name '.packlist' -delete
+  find "$pkgdir" -name '*.pod' -delete
+# 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;
+}

Copied: perl-params-validate/repos/community-staging-x86_64/PKGBUILD (from rev 254255, perl-params-validate/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-08-26 18:00:38 UTC (rev 254256)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-params-validate
+pkgver=1.28
+pkgrel=4
+pkgdesc="Validate sub params against a spec"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/Params-Validate"
+license=('GPL' 'PerlArtistic')
+depends=('perl' 'perl-module-implementation')
+makedepends=('perl-module-build')
+options=('!emptydirs')
+source=("http://www.cpan.org/authors/id/D/DR/DROLSKY/Params-Validate-${pkgver}.tar.gz")
+sha256sums=('dde5ec77993a9cac300c53053588a50b9c5aeadb77626fe8bc9c2d9b29aaff77')
+
+build() {
+  cd  Params-Validate-${pkgver}
+  perl ./Build.PL --installdirs=vendor
+  ./Build
+}
+package() {
+  cd  Params-Validate-${pkgver}
+  ./Build install --destdir="$pkgdir"
+  find "$pkgdir" -name '.packlist' -delete
+  find "$pkgdir" -name '*.pod' -delete
+# 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;
+}



More information about the arch-commits mailing list