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

Jan de Groot jgc at archlinux.org
Sat Sep 1 17:50:45 UTC 2007


    Date: Saturday, September 1, 2007 @ 13:50:45
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-date-calc

Modified: PKGBUILD (1.2 -> 1.3)

upgpkg: perl-date-calc 5.4-2
Add license, use universal perl installation method


----------+
 PKGBUILD |   27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)


Index: extra/lib/perl-date-calc/PKGBUILD
diff -u extra/lib/perl-date-calc/PKGBUILD:1.2 extra/lib/perl-date-calc/PKGBUILD:1.3
--- extra/lib/perl-date-calc/PKGBUILD:1.2	Sun May 28 06:19:45 2006
+++ extra/lib/perl-date-calc/PKGBUILD	Sat Sep  1 13:50:45 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/01 17:50:45 jgc Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=perl-date-calc
 pkgver=5.4
-pkgrel=1
+pkgrel=2
 pkgdesc="Perl module for Gregorian calendar date calculations"
 arch=(i686 x86_64)
-url="http://search.cpan.org/~stbey/Date-Calc-$pkgver/"
+license=('PerlArtistic')
+url="http://search.cpan.org/~stbey/Date-Calc"
 depends=('perl-bit-vector')
-source=(http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Calc-$pkgver.tar.gz)
+options=(!emptydirs)
+source=(http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Calc-${pkgver}.tar.gz)
 md5sums=('7ae34972694127e8f1c9a2af1c24585b')
 
 build() {
   cd $startdir/src/Date-Calc-$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 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
-  /usr/bin/make || return 1
-  /usr/bin/make install DESTDIR=$startdir/pkg
+      INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname}
+  make || return 1
+  make install DESTDIR=${startdir}/pkg
 
-  # remove perllocal.pod, .packlist, and empty dirs.
-  /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
-  /bin/rm $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/Date/Calc/.packlist
+  # 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