PKGBUILDs/extra/perl-xml-libxml/PKGBUILD
2015-03-30 03:33:32 +00:00

37 lines
971 B
Bash

# $Id$
# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org>
# Contributor: Justin "juster" Davis <jrcd83@gmail.com>
# Contributor: François Charette <francois.archlinux.org>
# remove when bumped upstream
pkgname=perl-xml-libxml
pkgver=2.0118
pkgrel=2.1
pkgdesc="Interface to the libxml library"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/XML-LibXML"
license=('GPL')
depends=('libxml2' 'perl-xml-sax' 'perl-xml-namespacesupport')
provides=('perl-libxml' 'perl-xml-libxml-common')
replaces=('perl-libxml' 'perl-xml-libxml-common')
options=('!emptydirs')
install=$pkgname.install
source=(http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-$pkgver.tar.gz)
md5sums=('da8d61a5d0d1bfd8d46814e376d33f58')
build() {
cd "$srcdir"/XML-LibXML-$pkgver
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$srcdir"/XML-LibXML-$pkgver
make test
}
package() {
cd "$srcdir"/XML-LibXML-$pkgver
make pure_install doc_install DESTDIR="$pkgdir"/
}