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

Jan de Groot jgc at archlinux.org
Sat Sep 1 22:46:01 UTC 2007


    Date: Saturday, September 1, 2007 @ 18:46:01
  Author: jgc
    Path: /home/cvs-extra/extra/lib/perl-libwww

Modified: PKGBUILD (1.6 -> 1.7)

upgpkg: perl-libwww 5.808-1
Use universal perl methods


----------+
 PKGBUILD |   31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)


Index: extra/lib/perl-libwww/PKGBUILD
diff -u extra/lib/perl-libwww/PKGBUILD:1.6 extra/lib/perl-libwww/PKGBUILD:1.7
--- extra/lib/perl-libwww/PKGBUILD:1.6	Sun May 28 06:19:46 2006
+++ extra/lib/perl-libwww/PKGBUILD	Sat Sep  1 18:46:01 2007
@@ -1,31 +1,34 @@
-# $Id: PKGBUILD,v 1.6 2006/05/28 10:19:46 notz Exp $
+# $Id: PKGBUILD,v 1.7 2007/09/01 22:46:01 jgc Exp $
 # Maintainer: Kevin Piche <kevin at archlinux.org>
 # Contributor: Manolis Tzanidakis
 
 pkgname=perl-libwww
-pkgver=5.805
+pkgver=5.808
 pkgrel=1
 pkgdesc="A set of Perl modules which provides a simple and consistent API to the WWW."
 arch=(i686 x86_64)
-url="http://search.cpan.org/~gaas/libwww-perl-$pkgver"
-depends=('perl-uri' 'perl-html-parser')
-source=(http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-$pkgver.tar.gz)
-md5sums=('db1eb693eee45d251966ad2bab49dbbf')
+license=('PerlArtistic')
+url="http://search.cpan.org/dist/libwww-perl"
+depends=('perl-uri' 'perl-html-parser' 'perl-compress-zlib')
+options=(!emptydirs)
 replaces=('libwww-perl')
 provides=('libwww-perl')
+source=(http://www.cpan.org/authors/id/G/GA/GAAS/libwww-perl-$pkgver.tar.gz)
+md5sums=('72120d9195ab1649c2d787eb1102a90c')
 
 build() {
   cd $startdir/src/libwww-perl-$pkgver
   # Force module installation to "current" perl directories.
-  /usr/bin/yes "" | /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
-  /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 -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
 }
 # vim: ts=2 sw=2 et ft=sh




More information about the arch-commits mailing list