[arch-commits] Commit in perl-guard/repos (6 files)

Florian Pritz bluewind at archlinux.org
Fri May 27 08:00:59 UTC 2016


    Date: Friday, May 27, 2016 @ 10:00:58
  Author: bluewind
Revision: 268669

db-move: moved perl-guard from [staging] to [testing] (i686, x86_64)

Added:
  perl-guard/repos/testing-i686/
  perl-guard/repos/testing-i686/PKGBUILD
    (from rev 268668, perl-guard/repos/staging-i686/PKGBUILD)
  perl-guard/repos/testing-x86_64/
  perl-guard/repos/testing-x86_64/PKGBUILD
    (from rev 268668, perl-guard/repos/staging-x86_64/PKGBUILD)
Deleted:
  perl-guard/repos/staging-i686/
  perl-guard/repos/staging-x86_64/

-------------------------+
 testing-i686/PKGBUILD   |   53 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   53 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 106 insertions(+)

Copied: perl-guard/repos/testing-i686/PKGBUILD (from rev 268668, perl-guard/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-05-27 08:00:58 UTC (rev 268669)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Justin Davis <jrcd83 at gmail.com>
+
+pkgname=perl-guard
+pkgver=1.023
+pkgrel=3
+pkgdesc='safe cleanup blocks'
+arch=('i686' 'x86_64')
+url='https://metacpan.org/release/Guard'
+license=('GPL' 'PerlArtistic')
+makedepends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Guard-${pkgver}.tar.gz")
+md5sums=('dbbb944601a31f60ee58954ad4cb65b4')
+
+build() {
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
+      PERL_AUTOINSTALL=--skipdeps                            \
+      PERL_MM_OPT="INSTALLDIRS=vendor"     \
+      PERL_MB_OPT="--installdirs vendor" \
+      MODULEBUILDRC=/dev/null
+
+    cd "${srcdir}/Guard-${pkgver}"
+    /usr/bin/perl Makefile.PL
+    make
+  )
+}
+
+check() {
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    cd "${srcdir}/Guard-${pkgver}"
+    make test
+  )
+}
+
+package() {
+    cd "${srcdir}/Guard-${pkgver}"
+    make DESTDIR="$pkgdir" install
+# 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-guard/repos/testing-x86_64/PKGBUILD (from rev 268668, perl-guard/repos/staging-x86_64/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-05-27 08:00:58 UTC (rev 268669)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Justin Davis <jrcd83 at gmail.com>
+
+pkgname=perl-guard
+pkgver=1.023
+pkgrel=3
+pkgdesc='safe cleanup blocks'
+arch=('i686' 'x86_64')
+url='https://metacpan.org/release/Guard'
+license=('GPL' 'PerlArtistic')
+makedepends=('perl')
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Guard-${pkgver}.tar.gz")
+md5sums=('dbbb944601a31f60ee58954ad4cb65b4')
+
+build() {
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
+      PERL_AUTOINSTALL=--skipdeps                            \
+      PERL_MM_OPT="INSTALLDIRS=vendor"     \
+      PERL_MB_OPT="--installdirs vendor" \
+      MODULEBUILDRC=/dev/null
+
+    cd "${srcdir}/Guard-${pkgver}"
+    /usr/bin/perl Makefile.PL
+    make
+  )
+}
+
+check() {
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    cd "${srcdir}/Guard-${pkgver}"
+    make test
+  )
+}
+
+package() {
+    cd "${srcdir}/Guard-${pkgver}"
+    make DESTDIR="$pkgdir" install
+# 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