1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 pkgname=python-urwid-git
5 pkgdesc="Console user interface library for Python"
7 url="https://github.com/wardi/urwid"
11 provides=('python-urwid')
12 conflicts=('python-urwid' 'python-urwid-hg')
14 _gitroot="https://github.com/wardi/urwid.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
35 sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
36 -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
37 $(find ./ -name '*.py')
40 python2 setup.py install --prefix=/usr --root=$pkgdir