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

Felix Yan felixonmars at archlinux.org
Mon Nov 27 08:32:26 UTC 2017


    Date: Monday, November 27, 2017 @ 08:32:25
  Author: felixonmars
Revision: 269491

archrelease: copy trunk to community-testing-x86_64

Added:
  perl-mouse/repos/community-testing-x86_64/
  perl-mouse/repos/community-testing-x86_64/PKGBUILD
    (from rev 269490, perl-mouse/trunk/PKGBUILD)

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

Copied: perl-mouse/repos/community-testing-x86_64/PKGBUILD (from rev 269490, perl-mouse/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2017-11-27 08:32:25 UTC (rev 269491)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-mouse
+pkgver=2.5.0
+pkgrel=1
+pkgdesc="Moose minus the antlers"
+arch=('x86_64')
+url="http://search.cpan.org/dist/Mouse"
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+makedepends=('perl-test-exception' 'perl-test-fatal' 'perl-module-build'
+             'perl-module-build-xsutil' 'perl-test-requires'
+             'perl-test-leaktrace' 'perl-test-output' 'perl-test-deep'
+             'perl-io-string')
+checkdepends=('perl-path-class')
+source=(http://search.cpan.org/CPAN/authors/id/S/SK/SKAJI/Mouse-v$pkgver.tar.gz)
+sha512sums=('fa09dea1254d2666831bb284eae659cb1b852a73fdecadeb0f79cff5ba790f7fe9916fb7cfb3ae5ce702e2eb65fee866d41df92a16fceac8b09a2ea5aa0e4df8')
+
+build() {
+  cd Mouse-v$pkgver
+  perl Build.PL --installdirs=vendor
+  ./Build
+}
+
+check() {
+  cd Mouse-v$pkgver
+  ./Build test
+}
+
+package() {
+  cd Mouse-v$pkgver
+  ./Build 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;
+}



More information about the arch-commits mailing list