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

Jan de Groot jgc at archlinux.org
Sun Sep 2 13:46:16 UTC 2007


    Date: Sunday, September 2, 2007 @ 09:46:16
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-date-manip

Modified: PKGBUILD (1.2 -> 1.3)

upgpkg: perl-date-manip 5.44-2
use new perl methods


----------+
 PKGBUILD |   23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)


Index: extra/lib/perl-date-manip/PKGBUILD
diff -u extra/lib/perl-date-manip/PKGBUILD:1.2 extra/lib/perl-date-manip/PKGBUILD:1.3
--- extra/lib/perl-date-manip/PKGBUILD:1.2	Sun May 28 06:19:45 2006
+++ extra/lib/perl-date-manip/PKGBUILD	Sun Sep  2 09:46:16 2007
@@ -1,28 +1,31 @@
-# $Id: PKGBUILD,v 1.2 2006/05/28 10:19:45 notz Exp $
+# $Id: PKGBUILD,v 1.3 2007/09/02 13:46:16 jgc Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: Andrew Simmons <andrew.simmons at gmail.com>
 
 pkgname=perl-date-manip
 pkgver=5.44
-pkgrel=1
+pkgrel=2
 pkgdesc="Date::Manip - date manipulation routines"
 arch=(i686 x86_64)
-url="http://search.cpan.org/~sbeck/DateManip-$pkgver/"
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/DateManip/"
 depends=('perl')
+options=(!emptydirs)
 source=(http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/DateManip-$pkgver.tar.gz)
 md5sums=('ebb1e17639fc4260b72690c1de2f5fdc')
 
 build() {
   cd $startdir/src/DateManip-$pkgver
   # Force module installation to "current" perl directories.
-  /usr/bin/perl Makefile.PL \
-      INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \
+  eval `perl -V:archname`
+  PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
+      INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
       INSTALLSITELIB=/usr/lib/perl5/site_perl/current \
-      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
+      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
   make || return 1
-  make DESTDIR=$startdir/pkg install
+  make install DESTDIR=${startdir}/pkg
 
-  # remove perllocal.pod, .packlist, and empty dirs.
-  /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
-  /bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
+  # remove perllocal.pod and .packlist
+  find ${startdir}/pkg -name perllocal.pod -delete
+  find ${startdir}/pkg -name .packlist -delete
 }




More information about the arch-commits mailing list