From e7b9c9697e6a50c3b9e78941fa95ba11c716d238 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 1 Jun 2011 22:46:45 +0000 Subject: Wed Jun 1 22:46:45 UTC 2011 --- testing/perl-xml-parser/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/perl-xml-parser/PKGBUILD (limited to 'testing/perl-xml-parser') diff --git a/testing/perl-xml-parser/PKGBUILD b/testing/perl-xml-parser/PKGBUILD new file mode 100644 index 000000000..46ffa0923 --- /dev/null +++ b/testing/perl-xml-parser/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 124562 2011-05-22 23:45:41Z andrea $ +# Maintainer: +# Contributor: firmicus +# Contributor: dorphell +# Contributor: herb + +pkgname=perl-xml-parser +_realname=XML-Parser +pkgver=2.40 +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/C/CH/CHORNY/${_realname}-${pkgver}.tar.gz") +md5sums=('c66e9adba003d0667cc40115ccd837a5') + +build() { + cd "${srcdir}/${_realname}-${pkgver}" + + # install module in vendor directories. + perl Makefile.PL INSTALLDIRS=vendor + make + 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 +} -- cgit v1.2.3-54-g00ecf