[arch-commits] CVS update of extra/lib/perl-date-calc (PKGBUILD)

Kevin Piche kevin at archlinux.org
Wed Jan 9 04:03:57 UTC 2008


    Date: Tuesday, January 8, 2008 @ 23:03:57
  Author: kevin
    Path: /home/cvs-extra/extra/lib/perl-date-calc

Modified: PKGBUILD (1.3 -> 1.4)

upgpkg: perl-date-calc 5.4-3
Updated for new perl policy


----------+
 PKGBUILD |   25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)


Index: extra/lib/perl-date-calc/PKGBUILD
diff -u extra/lib/perl-date-calc/PKGBUILD:1.3 extra/lib/perl-date-calc/PKGBUILD:1.4
--- extra/lib/perl-date-calc/PKGBUILD:1.3	Sat Sep  1 13:50:45 2007
+++ extra/lib/perl-date-calc/PKGBUILD	Tue Jan  8 23:03:57 2008
@@ -1,29 +1,26 @@
-# $Id: PKGBUILD,v 1.3 2007/09/01 17:50:45 jgc Exp $
+# $Id: PKGBUILD,v 1.4 2008/01/09 04:03:57 kevin Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=perl-date-calc
+_realname=Date-Calc
 pkgver=5.4
-pkgrel=2
+pkgrel=3
 pkgdesc="Perl module for Gregorian calendar date calculations"
 arch=(i686 x86_64)
 license=('PerlArtistic')
-url="http://search.cpan.org/~stbey/Date-Calc"
-depends=('perl-bit-vector')
+url="http://search.cpan.org/dist/${_realname}/"
+depends=('perl-bit-vector' 'perl>=5.10.0')
 options=(!emptydirs)
-source=(http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Calc-${pkgver}.tar.gz)
+source=(http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/${_realname}-${pkgver}.tar.gz)
 md5sums=('7ae34972694127e8f1c9a2af1c24585b')
 
 build() {
-  cd $startdir/src/Date-Calc-$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
+  cd $startdir/src/${_realname}-$pkgver
+  # 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