# $Id: PKGBUILD 198290 2013-10-30 13:57:59Z allan $ # Maintainer: Jan de Groot # Maintainer: Tom Gundersen # Contributor: John Proctor pkgname=libxml2 pkgver=2.9.1 pkgrel=3 pkgdesc="XML parsing library, version 2" arch=(i686 x86_64) license=('MIT') depends=('zlib' 'readline' 'ncurses' 'xz') makedepends=('python2') url="http://www.xmlsoft.org/" source=(ftp://ftp.xmlsoft.org/${pkgname}/${pkgname}-${pkgver}.tar.gz http://www.w3.org/XML/Test/xmlts20080827.tar.gz) md5sums=('9c0cfef285d5c4a5c80d00904ddab380' 'ae3d1ebe000a3972afa104ca7f0e1b4a') build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -e 's|/usr/bin/python -u|/usr/bin/python2 -u|g' -e 's|/usr/bin/python$|/usr/bin/python2|g' -i python/tests/*.py ./configure --prefix=/usr --with-threads --with-history \ --with-python=/usr/bin/python2 make } check() { cd "${srcdir}/${pkgname}-${pkgver}" mv "${srcdir}/xmlconf" . make check } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" }