# $Id: PKGBUILD 41766 2009-06-07 09:29:56Z jgc $ # Maintainer: Jan de Groot pkgname=pyxml pkgver=0.8.4 pkgrel=6 pkgdesc="Python XML parsing library." arch=(i686 x86_64) url="http://pyxml.sourceforge.net/" license=('custom') depends=('python') source=(http://downloads.sourceforge.net/sourceforge/pyxml/PyXML-${pkgver}.tar.gz fix-python2.6.patch) md5sums=('1f7655050cebbb664db976405fdba209' '4b652e0c866e3cca7e2386e8e383d5ba') build() { cd "${startdir}/src/PyXML-${pkgver}" patch -Np1 -i "${srcdir}/fix-python2.6.patch" || return 1 python setup.py build || return 1 python setup.py install --prefix=/usr --root="${pkgdir}" || return 1 install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1 }