[arch-commits] Commit in perl-xml-parser/trunk (PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Wed Jun 30 13:48:08 EDT 2010


    Date: Wednesday, June 30, 2010 @ 13:48:08
  Author: andrea
Revision: 84522

upgpkg: perl-xml-parser 2.36-6
fix provides array

Modified:
  perl-xml-parser/trunk/PKGBUILD

----------+
 PKGBUILD |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-30 17:30:10 UTC (rev 84521)
+++ PKGBUILD	2010-06-30 17:48:08 UTC (rev 84522)
@@ -1,19 +1,19 @@
 # $Id$
-# Contributor firmicus <francois at archlinux.org>
+# Maintainer: firmicus <francois at archlinux.org>
 # Contributor: dorphell <dorphell at archlinux.org>
 # Contributor: herb <hrose at archlinux.org>
 
 pkgname=perl-xml-parser
 _realname=XML-Parser
 pkgver=2.36
-pkgrel=5
+pkgrel=6
 pkgdesc="Expat-based XML parser module for perl"
 arch=(i686 x86_64)
 license=('GPL' 'PerlArtistic')
 url="http://search.cpan.org/dist/${_realname}/"
-depends=('perl' 'expat>=2.0')
+depends=('perl' 'expat')
 replaces=('perlxml')
-provides=('perlxml')
+provides=("perlxml=${pkgver}")
 options=(!emptydirs)
 source=(http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/${_realname}-${pkgver}.tar.gz)
 md5sums=('1b868962b658bd87e1563ecd56498ded')
@@ -22,10 +22,14 @@
   cd "${srcdir}/${_realname}-${pkgver}"
   
   # install module in vendor directories.
-  perl Makefile.PL INSTALLDIRS=vendor || return 1
-  make || return 1
-  make install DESTDIR="${pkgdir}" || return 1
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
 
+package() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make install DESTDIR="${pkgdir}"
+
   # remove perllocal.pod and .packlist.
   find "${pkgdir}" -name perllocal.pod -delete
   find "${pkgdir}" -name .packlist -delete



More information about the arch-commits mailing list