[arch-commits] CVS update of extra/lib/perl-carp-clan (PKGBUILD)

Kevin Piche kevin at archlinux.org
Sat Apr 28 19:38:46 UTC 2007


    Date: Saturday, April 28, 2007 @ 15:38:46
  Author: kevin
    Path: /home/cvs-extra/extra/lib/perl-carp-clan

Modified: PKGBUILD (1.2 -> 1.3)

upgpkg: perl-carp-clan 5.9-1


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


Index: extra/lib/perl-carp-clan/PKGBUILD
diff -u extra/lib/perl-carp-clan/PKGBUILD:1.2 extra/lib/perl-carp-clan/PKGBUILD:1.3
--- extra/lib/perl-carp-clan/PKGBUILD:1.2	Sun May 28 06:19:45 2006
+++ extra/lib/perl-carp-clan/PKGBUILD	Sat Apr 28 15:38:46 2007
@@ -1,28 +1,31 @@
-# $Id: PKGBUILD,v 1.2 2006/05/28 10:19:45 notz Exp $
+# $Id: PKGBUILD,v 1.3 2007/04/28 19:38:46 kevin Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=perl-carp-clan
-pkgver=5.3
+_realname=Carp-Clan
+pkgver=5.9
 pkgrel=1
 pkgdesc='Report errors from perspective of caller of a "clan" of modules'
 arch=(i686 x86_64)
-url="http://search.cpan.org/~stbey/Carp-Clan-$pkgver/"
+url="http://search.cpan.org/~stbey/${_realname}-${pkgver}/"
 depends=('perl>=5.8.4-1')
-source=(http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Carp-Clan-$pkgver.tar.gz)
-md5sums=('d0a0431921b2c786aac234dfb6fe02ca')
+source=(http://search.cpan.org/CPAN/authors/id/J/JJ/JJORE/${_realname}-${pkgver}.tar.gz)
+md5sums=('a4278ba440a56665b2d143f18521856c')
 
 build() {
-  cd $startdir/src/Carp-Clan-$pkgver
+  cd ${startdir}/src/${_realname}-${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`
+  # The variable forces use of default answers to interactive prompts.
+  PERL_MM_USE_DEFAULT=1 /usr/bin/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}
   /usr/bin/make || return 1
-  /usr/bin/make install DESTDIR=$startdir/pkg
+  /usr/bin/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
+  /bin/rm -rf ${startdir}/pkg/usr/lib/perl5/current
+  /bin/rm -rf ${startdir}/pkg/usr/lib/perl5/site_perl/current/${archname}
 }




More information about the arch-commits mailing list