summaryrefslogtreecommitdiffstats
path: root/main/py-xml/APKBUILD
blob: 401efaa5a7aebde0e578fd26fd548569b4cec222 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-xml
pkgver=0.8.4
pkgrel=2
pkgdesc="Python XML parsing library."
url="http://pyxml.sourceforge.net/"
arch="all"
license="custom"
depends=
makedepends="python-dev"
source="http://downloads.sourceforge.net/sourceforge/pyxml/PyXML-$pkgver.tar.gz
	fix-python2.6.patch"

_builddir="$srcdir"/PyXML-$pkgver
build() {
	cd "$_builddir"
	patch -Np1 -i "$srcdir/fix-python2.6.patch" || return 1
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
	install -D -m644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
}

md5sums="1f7655050cebbb664db976405fdba209  PyXML-0.8.4.tar.gz
4b652e0c866e3cca7e2386e8e383d5ba  fix-python2.6.patch"