APKBUILD 785 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-xml
pkgver=0.8.4
4
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Python XML parsing library."
url="http://pyxml.sourceforge.net/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
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"