[arch-commits] Commit in perl-datetime/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Fri Jun 2 07:11:05 UTC 2017
Date: Friday, June 2, 2017 @ 07:11:04
Author: felixonmars
Revision: 232921
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
perl-datetime/repos/community-staging-i686/
perl-datetime/repos/community-staging-i686/PKGBUILD
(from rev 232920, perl-datetime/trunk/PKGBUILD)
perl-datetime/repos/community-staging-x86_64/
perl-datetime/repos/community-staging-x86_64/PKGBUILD
(from rev 232920, perl-datetime/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++
2 files changed, 80 insertions(+)
Copied: perl-datetime/repos/community-staging-i686/PKGBUILD (from rev 232920, perl-datetime/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-06-02 07:11:04 UTC (rev 232921)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-datetime
+pkgver=1.42
+pkgrel=2
+pkgdesc="A complete, easy to use date and time object"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/DateTime"
+license=('GPL' 'PerlArtistic')
+depends=('perl-datetime-timezone>=0.59' 'perl-datetime-locale>=0.41'
+ 'perl-params-validate>=0.76' 'perl-math-round'
+ 'perl-namespace-autoclean' 'perl-specio' 'perl-eval-closure'
+ 'perl-params-validationcompiler')
+makedepends=('perl-module-build')
+LC_NUMERIC=C
+provides=("perl-datetime=`printf %.4f $pkgver`")
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz)
+sha256sums=('efa4badf07365d1b03ee5527fc79baaf7d8b449bf7baad13599f04177232416e')
+
+build() {
+ cd "$srcdir"/DateTime-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+package() {
+ cd "$srcdir"/DateTime-$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;
+}
Copied: perl-datetime/repos/community-staging-x86_64/PKGBUILD (from rev 232920, perl-datetime/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-06-02 07:11:04 UTC (rev 232921)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-datetime
+pkgver=1.42
+pkgrel=2
+pkgdesc="A complete, easy to use date and time object"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/DateTime"
+license=('GPL' 'PerlArtistic')
+depends=('perl-datetime-timezone>=0.59' 'perl-datetime-locale>=0.41'
+ 'perl-params-validate>=0.76' 'perl-math-round'
+ 'perl-namespace-autoclean' 'perl-specio' 'perl-eval-closure'
+ 'perl-params-validationcompiler')
+makedepends=('perl-module-build')
+LC_NUMERIC=C
+provides=("perl-datetime=`printf %.4f $pkgver`")
+options=('!emptydirs')
+source=(http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz)
+sha256sums=('efa4badf07365d1b03ee5527fc79baaf7d8b449bf7baad13599f04177232416e')
+
+build() {
+ cd "$srcdir"/DateTime-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+package() {
+ cd "$srcdir"/DateTime-$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