aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-lxml/APKBUILD
blob: dc2ccec5e49975cb2abdabb88dc9e7788f83cbdf (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=py-lxml
_pkgname=lxml
pkgver=2.3.4
pkgrel=1
pkgdesc="Python LXML Library"
url="http://codespeak.net/lxml"
arch="all"
license="BSD"
depends=""
makedepends="libxml2-dev libxslt-dev py-setuptools"
install=
source="http://codespeak.net/lxml/$_pkgname-$pkgver.tgz"
_builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
	echo "/usr/lib/python2.6/site-packages/$_pkgname-$pkgver-py2.6.egg" > \
		"$pkgdir"/usr/lib/python2.6/site-packages/$_pkgname.pth
}

md5sums="61d4ad80726b984b35c9a81aa2510b4d  lxml-2.3.4.tgz"