Date: Sunday, May 27, 2012 @ 03:44:04
  Author: bluewind
Revision: 159924

db-move: moved perl-xml-parser from [staging] to [testing] (i686)

Added:
  perl-xml-parser/repos/testing-i686/
  perl-xml-parser/repos/testing-i686/PKGBUILD
    (from rev 159819, perl-xml-parser/repos/staging-i686/PKGBUILD)
Deleted:
  perl-xml-parser/repos/staging-i686/

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: perl-xml-parser/repos/testing-i686/PKGBUILD (from rev 159819, 
perl-xml-parser/repos/staging-i686/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD                               (rev 0)
+++ testing-i686/PKGBUILD       2012-05-27 07:44:04 UTC (rev 159924)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer:
+# Contributor: firmicus <[email protected]>
+# Contributor: dorphell <[email protected]>
+# Contributor: herb <[email protected]>
+
+pkgname=perl-xml-parser
+_realname=XML-Parser
+pkgver=2.41
+pkgrel=3
+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')
+replaces=('perlxml')
+provides=("perlxml=${pkgver}")
+options=('!emptydirs')
+source=("http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/${_realname}-${pkgver}.tar.gz";)
+md5sums=('c320d2ffa459e6cdc6f9f59c1185855e')
+
+build() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+
+  # install module in vendor directories.
+  perl Makefile.PL INSTALLDIRS=vendor
+  make
+}
+
+check() {
+  cd "${srcdir}/${_realname}-${pkgver}"
+  make test
+}
+
+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
+}

Reply via email to