diff options
Diffstat (limited to 'abs/core-testing/perl_modules/perl-libxml')
-rw-r--r-- | abs/core-testing/perl_modules/perl-libxml/PKGBUILD | 31 | ||||
-rw-r--r-- | abs/core-testing/perl_modules/perl-libxml/perl-libxml.install | 29 |
2 files changed, 60 insertions, 0 deletions
diff --git a/abs/core-testing/perl_modules/perl-libxml/PKGBUILD b/abs/core-testing/perl_modules/perl-libxml/PKGBUILD new file mode 100644 index 0000000..864c01b --- /dev/null +++ b/abs/core-testing/perl_modules/perl-libxml/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD,v 1.5 2007/11/12 23:00:43 firmicus Exp $ +# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org> +# Contributor: phrakture <aaron m griffin :: gmail-com> +# Contributor: Firmicus <firmicus ατ gmx δοτ net> + +pkgname=perl-libxml +pkgver=1.65 +pkgrel=1 +pkgdesc="Perl bindings for libxml2" +arch=('i686' 'x86_64') +url="http://search.cpan.org/~pajas/XML-LibXML/" +license=('GPL' 'PerlArtistic') +depends=('perl-libxml-common' 'perl-xml-sax' 'libxml2') +options=('!emptydirs') +install=perl-libxml.install +source=(http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-$pkgver.tar.gz) +md5sums=('7871c21078f706690cda9ca68d4ddac6') + +build() +{ + cd $startdir/src/XML-LibXML-$pkgver/ + eval `perl -V:archname` + SKIP_SAX_INSTALL=y perl Makefile.PL \ + INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \ + INSTALLSITELIB=/usr/lib/perl5/site_perl/current \ + INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} || return 1 + make || return 1 + make DESTDIR=$startdir/pkg install + find $startdir/pkg -name '.packlist' -delete + find $startdir/pkg -name '*.pod' -delete +} diff --git a/abs/core-testing/perl_modules/perl-libxml/perl-libxml.install b/abs/core-testing/perl_modules/perl-libxml/perl-libxml.install new file mode 100644 index 0000000..a7616f2 --- /dev/null +++ b/abs/core-testing/perl_modules/perl-libxml/perl-libxml.install @@ -0,0 +1,29 @@ +pre_install() { + /bin/true +} + +post_install() { + echo ":: Installing SAX XML Parsers" + /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers()" + /usr/bin/perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::LibXML::SAX))->save_parsers()" +} + +pre_upgrade() { + /bin/true +} + +post_upgrade() { + /bin/true +} + +pre_remove() { + /bin/true +} + +post_remove() { + /bin/true +} + +op=$1 +shift +$op $* |