summaryrefslogtreecommitdiff
path: root/testing/python-urwid/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/python-urwid/PKGBUILD')
-rw-r--r--testing/python-urwid/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/python-urwid/PKGBUILD b/testing/python-urwid/PKGBUILD
new file mode 100644
index 000000000..d1804969c
--- /dev/null
+++ b/testing/python-urwid/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD,v 1.10 2009/03/13 21:14:09 sergej Exp $
+# Maintainer: Daniel Isenmann <daniel@archlinux.org>
+# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org>
+# Maintainer: Douglas Soares de Andrade <dsandrade@gmail.com>
+
+pkgname=('python-urwid' 'python2-urwid')
+pkgver=1.0.2
+pkgrel=2
+pkgdesc="Urwid is a curses-based user interface library."
+license=('LGPL')
+arch=('i686' 'x86_64')
+makedepends=('python2-distribute' 'python-distribute')
+url="http://excess.org/urwid/"
+source=(http://excess.org/urwid/urwid-$pkgver.tar.gz)
+md5sums=('00542bbd15fae7ea60b02a7570edee2b')
+
+build() {
+ cp -r urwid-$pkgver python2-urwid-$pkgver
+
+ cd "$srcdir/urwid-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/python2-urwid-$pkgver"
+ sed -i 's#bin/python#bin/python2#' urwid/*.py
+
+ python2 setup.py build
+}
+
+package_python-urwid() {
+ depends=('python')
+
+ cd "$srcdir/urwid-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+
+package_python2-urwid() {
+ depends=('python2')
+
+ cd "$srcdir/python2-urwid-$pkgver"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}
+