[arch-commits] Commit in perl-canary-stability/repos (2 files)

Felix Yan fyan at archlinux.org
Tue Jul 14 03:23:08 UTC 2015


    Date: Tuesday, July 14, 2015 @ 05:23:08
  Author: fyan
Revision: 136810

archrelease: copy trunk to community-x86_64

Added:
  perl-canary-stability/repos/community-x86_64/
  perl-canary-stability/repos/community-x86_64/PKGBUILD
    (from rev 136809, perl-canary-stability/trunk/PKGBUILD)

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

Copied: perl-canary-stability/repos/community-x86_64/PKGBUILD (from rev 136809, perl-canary-stability/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-07-14 03:23:08 UTC (rev 136810)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Brian Bidulock <bidulock at openss7.org>
+
+pkgname=perl-canary-stability
+_realname=Canary-Stability
+pkgver=2006
+pkgrel=1
+pkgdesc="CPAN/Canary-Stability - canary to check perl compatability for schmorp's modules"
+arch=('i686' 'x86_64')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl-anyevent' 'perl-common-sense' 'perl-guard')
+url="https://metacpan.org/release/${_realname}"
+source=("http://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/${_realname}-${pkgver}.tar.gz")
+md5sums=('570ffd5fd8a399b6ba392c8451c8f5ab')
+
+build() {
+  cd "$srcdir/$_realname-$pkgver"
+  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:set ts=2 sw=2 et:



More information about the arch-commits mailing list