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

Kevin Piche kevin at archlinux.org
Sat Apr 28 15:39:02 EDT 2007


    Date: Saturday, April 28, 2007 @ 15:39:02
  Author: kevin
    Path: /home/cvs-extra/extra/lib/perl-html-parser

Modified: PKGBUILD (1.7 -> 1.8)

upgpkg: perl-html-parser 3.56-1


----------+
 PKGBUILD |   24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)


Index: extra/lib/perl-html-parser/PKGBUILD
diff -u extra/lib/perl-html-parser/PKGBUILD:1.7 extra/lib/perl-html-parser/PKGBUILD:1.8
--- extra/lib/perl-html-parser/PKGBUILD:1.7	Sun May 28 06:19:46 2006
+++ extra/lib/perl-html-parser/PKGBUILD	Sat Apr 28 15:39:02 2007
@@ -1,31 +1,33 @@
-# $Id: PKGBUILD,v 1.7 2006/05/28 10:19:46 notz Exp $
+# $Id: PKGBUILD,v 1.8 2007/04/28 19:39:02 kevin Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: Manolis Tzanidakis
 
 pkgname=perl-html-parser
-pkgver=3.50
+_realname=HTML-Parser
+pkgver=3.56
 pkgrel=1
 pkgdesc="Perl HTML parser class"
 arch=(i686 x86_64)
-url="http://search.cpan.org/~gaas/HTML-Parser-$pkgver"
+url="http://search.cpan.org/~gaas/${_realname}-${pkgver}"
 depends=('perl-html-tagset')
-source=(http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-$pkgver.tar.gz)
-md5sums=('4848c5eaac5576d1412578f480fdf22d')
+source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
+md5sums=('bddc432e5ed9df4d4153a62234f04fc2')
 replaces=('html-parser')
 provides=('html-parser')
 
 build() {
-  cd $startdir/src/HTML-Parser-$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 -f $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi/auto/HTML/Parser/.packlist
+  /bin/rm -rf ${startdir}/pkg/usr/lib/perl5/current
+  /bin/rm -f ${startdir}/pkg/usr/lib/perl5/site_perl/current/${archname}/auto/HTML/Parser/.packlist
 }
 # vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list