blob: eea70cc62e6f42324abe9cb07c7dbdc85cb2ff45 (
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 98285 2010-11-06 14:25:36Z schiv $
# Maintainer:
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=pyxml
pkgver=0.8.4
pkgrel=8
pkgdesc="Python XML parsing library"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/pyxml/"
license=('custom')
depends=('python2')
source=(http://downloads.sourceforge.net/sourceforge/pyxml/PyXML-${pkgver}.tar.gz
fix-python2.6.patch
foreigncharsfix.patch)
md5sums=('1f7655050cebbb664db976405fdba209'
'4b652e0c866e3cca7e2386e8e383d5ba'
'c9c54fdf0f7d1515a3b7aa34b01d1c46')
package() {
cd "${srcdir}/PyXML-${pkgver}"
patch -Np1 -i "${srcdir}/fix-python2.6.patch"
# as warranted by eric (the python IDE)
patch -Np1 -i "${srcdir}/foreigncharsfix.patch"
python2 setup.py build
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
install -D -m644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
sed -e 's|#! /usr/bin/env python|#!/usr/bin/env python2|' \
-i ${pkgdir}/usr/lib/python2.7/site-packages/_xmlplus/dom/ext/c14n.py
sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
-i ${pkgdir}/usr/lib/python2.7/site-packages/_xmlplus/dom/html/GenerateHtml.py
}
# vim:set ts=2 sw=2 et:
|