summaryrefslogtreecommitdiff
path: root/extra/python-urwid/PKGBUILD
blob: 62d10dd84f1acd288539d3fdd28bae36adc9bb7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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.1
pkgrel=1
pkgdesc="Urwid is a curses-based user interface library."
license=('GPL')
arch=('i686' 'x86_64')
makedepends=('python2-distribute' 'python-distribute')
url="http://excess.org/urwid/"
source=(http://excess.org/urwid/urwid-$pkgver.tar.gz)
md5sums=('828f7144b94920205e755c249d2e297f')

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
}