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

Evangelos Foutras foutrelis at archlinux.org
Sat Aug 26 11:15:51 UTC 2017


    Date: Saturday, August 26, 2017 @ 11:15:50
  Author: foutrelis
Revision: 253793

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

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

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

Copied: perl-params-util/repos/community-staging-i686/PKGBUILD (from rev 253792, perl-params-util/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-08-26 11:15:50 UTC (rev 253793)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
+# Contributor: Justin Davis (juster) <jrcd83 at gmail.com>
+
+pkgname=perl-params-util
+pkgver=1.07
+pkgrel=8
+pkgdesc='Simple, compact and correct param-checking functions'
+arch=('i686' 'x86_64')
+url="https://metacpan.org/release/Params-Util"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-$pkgver.tar.gz")
+sha256sums=('30f1ec3f2cf9ff66ae96f973333f23c5f558915bb6266881eac7423f52d7c76c')
+
+build() {
+  cd "$srcdir/Params-Util-$pkgver"
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+  unset PERL5LIB PERL_MM_OPT
+  /usr/bin/perl Makefile.PL
+  make
+}
+
+check() {
+  cd "$srcdir/Params-Util-$pkgver"
+  export PERL_MM_USE_DEFAULT=1
+  unset PERL5LIB
+  make test
+}
+
+package() {
+  cd "$srcdir/Params-Util-$pkgver"
+  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+  find "$pkgdir" -name .packlist -o -name perllocal.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;
+}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et:

Copied: perl-params-util/repos/community-staging-x86_64/PKGBUILD (from rev 253792, perl-params-util/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-08-26 11:15:50 UTC (rev 253793)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
+# Contributor: Justin Davis (juster) <jrcd83 at gmail.com>
+
+pkgname=perl-params-util
+pkgver=1.07
+pkgrel=8
+pkgdesc='Simple, compact and correct param-checking functions'
+arch=('i686' 'x86_64')
+url="https://metacpan.org/release/Params-Util"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Params-Util-$pkgver.tar.gz")
+sha256sums=('30f1ec3f2cf9ff66ae96f973333f23c5f558915bb6266881eac7423f52d7c76c')
+
+build() {
+  cd "$srcdir/Params-Util-$pkgver"
+  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
+  unset PERL5LIB PERL_MM_OPT
+  /usr/bin/perl Makefile.PL
+  make
+}
+
+check() {
+  cd "$srcdir/Params-Util-$pkgver"
+  export PERL_MM_USE_DEFAULT=1
+  unset PERL5LIB
+  make test
+}
+
+package() {
+  cd "$srcdir/Params-Util-$pkgver"
+  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+  find "$pkgdir" -name .packlist -o -name perllocal.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;
+}
+
+# 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