summaryrefslogtreecommitdiffstats
path: root/testing/py-xml/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-11 19:34:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-11 19:34:51 +0000
commitd78981c785e44030de05a6d1d3a06cd21d651005 (patch)
treea288366f31b72b15c4b5765d0c46628b9baa91f9 /testing/py-xml/APKBUILD
parent7c4b31647f32bb922cbd0d55d7804b1b2355d90d (diff)
downloadaports-d78981c785e44030de05a6d1d3a06cd21d651005.tar.bz2
aports-d78981c785e44030de05a6d1d3a06cd21d651005.tar.xz
testing/py-xml: new aport
Python XML parsing library. http://pyxml.sourceforge.net/
Diffstat (limited to 'testing/py-xml/APKBUILD')
-rw-r--r--testing/py-xml/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/py-xml/APKBUILD b/testing/py-xml/APKBUILD
new file mode 100644
index 000000000..1dd549da0
--- /dev/null
+++ b/testing/py-xml/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=py-xml
+pkgver=0.8.4
+pkgrel=0
+pkgdesc="Python XML parsing library."
+url="http://pyxml.sourceforge.net/"
+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"