[arch-commits] Commit in perl-digest-nilsimsa/repos (4 files)

Felix Yan fyan at archlinux.org
Wed May 11 04:44:26 UTC 2016


    Date: Wednesday, May 11, 2016 @ 06:44:26
  Author: fyan
Revision: 267748

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

Added:
  perl-digest-nilsimsa/repos/staging-i686/
  perl-digest-nilsimsa/repos/staging-i686/PKGBUILD
    (from rev 267747, perl-digest-nilsimsa/trunk/PKGBUILD)
  perl-digest-nilsimsa/repos/staging-x86_64/
  perl-digest-nilsimsa/repos/staging-x86_64/PKGBUILD
    (from rev 267747, perl-digest-nilsimsa/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   43 +++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: perl-digest-nilsimsa/repos/staging-i686/PKGBUILD (from rev 267747, perl-digest-nilsimsa/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2016-05-11 04:44:26 UTC (rev 267748)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+# Contributor: Manolis Tzanidakis
+
+pkgname=perl-digest-nilsimsa
+_realname=Digest-Nilsimsa
+pkgver=0.06
+pkgrel=12
+pkgdesc="Perl version of Nilsimsa code"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl')
+replaces=('digest-nilsimsa')
+provides=('digest-nilsimsa')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/V/VI/VIPUL/${_realname}-${pkgver}.tar.gz)
+md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make test
+}
+
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+# 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;
+}
+# vim: ts=2 sw=2 et ft=sh

Copied: perl-digest-nilsimsa/repos/staging-x86_64/PKGBUILD (from rev 267747, perl-digest-nilsimsa/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2016-05-11 04:44:26 UTC (rev 267748)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: kevin <kevin at archlinux.org>
+# Contributor: Manolis Tzanidakis
+
+pkgname=perl-digest-nilsimsa
+_realname=Digest-Nilsimsa
+pkgver=0.06
+pkgrel=12
+pkgdesc="Perl version of Nilsimsa code"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl')
+replaces=('digest-nilsimsa')
+provides=('digest-nilsimsa')
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/V/VI/VIPUL/${_realname}-${pkgver}.tar.gz)
+md5sums=('08e940bd7f5d1167ef3fd1aa7ce234d7')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make test
+}
+
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+# 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;
+}
+# vim: ts=2 sw=2 et ft=sh



More information about the arch-commits mailing list