summaryrefslogtreecommitdiff
path: root/extra/python-urwid
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-23 23:14:44 +0000
committerroot <root@rshg054.dnsready.net>2011-12-23 23:14:44 +0000
commitd53a615fd6ab6dfeb42da11086f96698cb08fe40 (patch)
treee8b4ecb6de34cedcb486150a721025bf303f66da /extra/python-urwid
parent34e6c976d28892a7bd3f7578f10fcfa57865472f (diff)
Fri Dec 23 23:14:44 UTC 2011
Diffstat (limited to 'extra/python-urwid')
-rw-r--r--extra/python-urwid/PKGBUILD33
1 files changed, 26 insertions, 7 deletions
diff --git a/extra/python-urwid/PKGBUILD b/extra/python-urwid/PKGBUILD
index c15be07c8..62d10dd84 100644
--- a/extra/python-urwid/PKGBUILD
+++ b/extra/python-urwid/PKGBUILD
@@ -3,21 +3,40 @@
# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org>
# Maintainer: Douglas Soares de Andrade <dsandrade@gmail.com>
-pkgname=python-urwid
-pkgver=0.9.9.2
+pkgname=('python-urwid' 'python2-urwid')
+pkgver=1.0.1
pkgrel=1
pkgdesc="Urwid is a curses-based user interface library."
license=('GPL')
arch=('i686' 'x86_64')
-depends=('python2')
+makedepends=('python2-distribute' 'python-distribute')
url="http://excess.org/urwid/"
source=(http://excess.org/urwid/urwid-$pkgver.tar.gz)
-md5sums=('e58b86a983fe5474a07749501748b728')
+md5sums=('828f7144b94920205e755c249d2e297f')
build() {
- cd $startdir/src/urwid-$pkgver
+ 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 install --prefix=/usr --root=$startdir/pkg || return 1
+
+ python2 setup.py build
+}
+
+package_python-urwid() {
+ depends=('python')
- rm -rf $startdir/src/$_hgname-build
+ 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
+}
+