[arch-commits] CVS update of extra/lib/perl-timedate (PKGBUILD)
Kevin Piche
kevin at archlinux.org
Thu Jan 24 04:42:22 UTC 2008
Date: Wednesday, January 23, 2008 @ 23:42:22
Author: kevin
Path: /home/cvs-extra/extra/lib/perl-timedate
Modified: PKGBUILD (1.5 -> 1.6)
upgpkg: perl-timedate 1.16-3
Updated for new perl policy
----------+
PKGBUILD | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
Index: extra/lib/perl-timedate/PKGBUILD
diff -u extra/lib/perl-timedate/PKGBUILD:1.5 extra/lib/perl-timedate/PKGBUILD:1.6
--- extra/lib/perl-timedate/PKGBUILD:1.5 Sat Sep 1 16:16:11 2007
+++ extra/lib/perl-timedate/PKGBUILD Wed Jan 23 23:42:22 2008
@@ -1,32 +1,29 @@
-# $Id: PKGBUILD,v 1.5 2007/09/01 20:16:11 jgc Exp $
+# $Id: PKGBUILD,v 1.6 2008/01/24 04:42:22 kevin Exp $
# Maintainer: Kevin Piche <kevin at archlinux.org>
# Contributor: Manolis Tzanidakis
pkgname=perl-timedate
+_realname=TimeDate
pkgver=1.16
-pkgrel=2
+pkgrel=3
pkgdesc="Date formating subroutines"
arch=(i686 x86_64)
license=('PerlArtistic')
-url="http://search.cpan.org/dist/TimeDate"
-depends=('perl')
-source=(http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-$pkgver.tar.gz)
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl>=5.10.0')
+source=(http://www.cpan.org/authors/id/G/GB/GBARR/${_realname}-${pkgver}.tar.gz)
options=(!emptydirs)
replaces=('timedate')
provides=('timedate')
md5sums=('b3cc35a7cabd106ac8829d2f2ff4bd9d')
build() {
- cd $startdir/src/TimeDate-$pkgver
+ cd $startdir/src/${_realname}-${pkgver}
- # Force module installation to "current" perl directories.
- eval `perl -V:archname`
- perl Makefile.PL \
- INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
- INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
- INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
- make || return 1
- make install DESTDIR=${startdir}/pkg
+ # install module in vendor directories.
+ perl Makefile.PL INSTALLDIRS=vendor || return 1
+ make || return 1
+ make install DESTDIR=${startdir}/pkg || return 1
# remove perllocal.pod and .packlist
find ${startdir}/pkg -name perllocal.pod -delete
More information about the arch-commits
mailing list