updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-xml-treebuilder / PKGBUILD
blobe0f85379c8e5f9142d052204ae46277c604319ba
1 # Contributor: giniu <gginiu@gmail.com>
2 pkgname=perl-xml-treebuilder
3 pkgver=4.1
4 pkgrel=1
5 pkgdesc="Parser that builds a tree of XML::Element objects"
6 arch=(any)
7 url="http://search.cpan.org/~jfearn/XML-TreeBuilder/"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0' 'perl-xml-parser' 'perl-html-tree>=4.1' 'perl-html-tagset>=3.02')
10 makedepends=('perl-test-critic' 'perl-test-pod-coverage' 'perl-test-exception' 'perl-devel-cover')
11 options=(!emptydirs)
12 source=(http://search.cpan.org/CPAN/authors/id/J/JF/JFEARN/XML-TreeBuilder-${pkgver}.tar.gz)
13 md5sums=('1e410f8a38584935fc72a769d655a6d8')
15 build() {
16   cd "$srcdir"/XML-TreeBuilder-${pkgver}
18   # install module in vendor directories.
19   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
20   make || return 1
21   make install DESTDIR="$pkgdir/" || return 1
23   # remove perllocal.pod and .packlist
24   find "$pkgdir" -name perllocal.pod -delete
25   find "$pkgdir" -name .packlist -delete
28 # vim:set ts=2 sw=2 et: