[arch-commits] Commit in perl-datetime/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Aug 1 11:53:17 UTC 2018
Date: Wednesday, August 1, 2018 @ 11:53:17
Author: felixonmars
Revision: 366557
archrelease: copy trunk to community-staging-x86_64
Added:
perl-datetime/repos/community-staging-x86_64/
perl-datetime/repos/community-staging-x86_64/PKGBUILD
(from rev 366556, perl-datetime/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: perl-datetime/repos/community-staging-x86_64/PKGBUILD (from rev 366556, perl-datetime/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-01 11:53:17 UTC (rev 366557)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: François Charette <firmicus ατ gmx δοτ net>
+
+pkgname=perl-datetime
+pkgver=1.49
+pkgrel=2
+pkgdesc="A complete, easy to use date and time object"
+arch=('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=(https://www.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-$pkgver.tar.gz)
+sha256sums=('708ed4a3dbaca8dc470fe29538e6fc0d25eca1831e9e77bea55a9812f0277c41')
+
+build() {
+ cd "$srcdir"/DateTime-$pkgver
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+# TODO: FIXME: FS#58776
+_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);')
+
+package() {
+ cd "$srcdir"/DateTime-$pkgver
+ make install DESTDIR="$pkgdir"
+ find "$pkgdir" -name '.packlist' -delete
+ find "$pkgdir" -name '*.pod' -delete
+}
More information about the arch-commits
mailing list