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

Kevin Piche kevin at archlinux.org
Sat Apr 28 15:45:32 EDT 2007


    Date: Saturday, April 28, 2007 @ 15:45:32
  Author: kevin
    Path: /home/cvs-extra/extra/lib/perl-mailtools

Modified: PKGBUILD (1.6 -> 1.7)

upgpkg: perl-mailtools 1.76-1


----------+
 PKGBUILD |   25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)


Index: extra/lib/perl-mailtools/PKGBUILD
diff -u extra/lib/perl-mailtools/PKGBUILD:1.6 extra/lib/perl-mailtools/PKGBUILD:1.7
--- extra/lib/perl-mailtools/PKGBUILD:1.6	Mon Jun 19 11:55:58 2006
+++ extra/lib/perl-mailtools/PKGBUILD	Sat Apr 28 15:45:32 2007
@@ -1,30 +1,31 @@
-# $Id: PKGBUILD,v 1.6 2006/06/19 15:55:58 kevin Exp $
+# $Id: PKGBUILD,v 1.7 2007/04/28 19:45:32 kevin Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: Eric Johnson <eric at coding-zone.com>
 
 pkgname=perl-mailtools
-pkgver=1.74
+_realname=MailTools
+pkgver=1.76
 pkgrel=1
 pkgdesc="Perl module that provides email tools"
 arch=(i686 x86_64)
-url="http://search.cpan.org/~markov/MailTools-$pkgver/"
+url="http://search.cpan.org/~markov/${_realname}-${pkgver}/"
 depends=('perl>=5.8.4-1')
-source=(http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-$pkgver.tar.gz)
-md5sums=('aba82a7eb87906278d98174e10d838be')
+source=(http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/${_realname}-${pkgver}.tar.gz)
+md5sums=('dedc97c82aa86f643a59a6302f6db5db')
 
 build() {
-  cd $startdir/src/MailTools-$pkgver
-
+  cd ${startdir}/src/${_realname}-${pkgver}
   # Force module installation to "current" perl directories.
+  eval `perl -V:archname`
   /usr/bin/perl Makefile.PL \
-      INSTALLARCHLIB=/usr/lib/perl5/current/${CARCH}-linux-thread-multi \
+      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}
 }
 # vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list