summaryrefslogtreecommitdiff
path: root/community/perl-xml-libxml/PKGBUILD
blob: e1f6f5035637597234963fe66680b18d02d59ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 100412 2013-11-03 17:59:19Z jsteel $
# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org>
# Contributor: Justin "juster" Davis <jrcd83@gmail.com>
# Contributor: François Charette <francois.archlinux.org>

pkgname=perl-xml-libxml
pkgver=2.0107
pkgrel=1
pkgdesc="Interface to the libxml library"
arch=('i686' 'x86_64' 'mips64el')
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=('4caedd8fb64167e1caf0443f18ec47a2')

build() {
  cd "$srcdir"/XML-LibXML-$pkgver

  PERL_MM_USE_DEFAULT=1 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"/
}