[arch-commits] Commit in perl-specio/repos (community-any community-any/PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Tue Oct 11 14:29:42 UTC 2016


    Date: Tuesday, October 11, 2016 @ 14:29:42
  Author: spupykin
Revision: 191942

archrelease: copy trunk to community-any

Added:
  perl-specio/repos/community-any/
  perl-specio/repos/community-any/PKGBUILD
    (from rev 191941, perl-specio/trunk/PKGBUILD)

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

Copied: perl-specio/repos/community-any/PKGBUILD (from rev 191941, perl-specio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-10-11 14:29:42 UTC (rev 191942)
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 191857 2016-10-10 11:17:38Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=perl-specio
+pkgver=0.29
+pkgrel=1
+pkgdesc="Type constraints and coercions for Perl"
+arch=('any')
+url="http://search.cpan.org/dist/Specio"
+license=('GPL' 'PerlArtistic')
+depends=('perl-role-tiny' 'perl-test-fatal' 'perl-mro-compat')
+options=('!emptydirs')
+source=(http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Specio-$pkgver.tar.gz)
+md5sums=('7d9f28dac997e38d0e78e41aa2e1b79a')
+
+build() {
+  cd  $srcdir/Specio-$pkgver
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor 
+  make
+}
+package() {
+  cd  $srcdir/Specio-$pkgver
+  make 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