Date: Wednesday, January 8, 2014 @ 00:50:31
  Author: eric
Revision: 203306

Clean up PKGBUILD

Modified:
  perl-xml-parser/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2014-01-07 23:23:24 UTC (rev 203305)
+++ PKGBUILD    2014-01-07 23:50:31 UTC (rev 203306)
@@ -1,42 +1,32 @@
 # $Id$
-# Maintainer:
-# Contributor: firmicus <franc...@archlinux.org>
-# Contributor: dorphell <dorph...@archlinux.org>
-# Contributor: herb <hr...@archlinux.org>
+# Maintainer: Eric Bélanger <e...@archlinux.org>
 
 pkgname=perl-xml-parser
-_realname=XML-Parser
 pkgver=2.41
 pkgrel=4
 pkgdesc="Expat-based XML parser module for perl"
 arch=('i686' 'x86_64')
 license=('GPL' 'PerlArtistic')
-url="http://search.cpan.org/dist/${_realname}/";
+url="http://search.cpan.org/dist/XML-Parser/";
 depends=('perl' 'expat')
 replaces=('perlxml')
 provides=("perlxml=${pkgver}")
 options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/${_realname}-${pkgver}.tar.gz";)
+source=("http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-${pkgver}.tar.gz";)
 md5sums=('c320d2ffa459e6cdc6f9f59c1185855e')
 
 build() {
-  cd "${srcdir}/${_realname}-${pkgver}"
-
-  # install module in vendor directories.
+  cd XML-Parser-${pkgver}
   perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
 check() {
-  cd "${srcdir}/${_realname}-${pkgver}"
+  cd XML-Parser-${pkgver}
   make test
 }
 
 package() {
-  cd "${srcdir}/${_realname}-${pkgver}"
+  cd XML-Parser-${pkgver}
   make install DESTDIR="${pkgdir}"
-
-  # remove perllocal.pod and .packlist.
-  find "${pkgdir}" -name perllocal.pod -delete
-  find "${pkgdir}" -name .packlist -delete
 }

Reply via email to