# Contributor: Matt Smith # Maintainer: Matt Smith pkgname=py-urwid _pkgname=urwid pkgver=1.3.0 pkgrel=0 pkgdesc="A console user interface library for Python" url="http://excess.org/urwid/" arch="all" license="LGPL2+" depends="" makedepends="python-dev py-setuptools py-templayer py-sphinx" install="" subpackages="$pkgname-doc $pkgname-examples" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" python setup.py build || return 1 sphinx-build -b html docs docs_tmp } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } examples() { arch="noarch" # Put the examples into a seperate package mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1 mv "$_builddir"/examples "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1 } doc() { arch="noarch" cd "$_builddir" mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/ || return 1 mv "$_builddir"/docs_tmp "$subpkgdir"/usr/share/doc/"$pkgname"/manual || return 1 } md5sums="a989acd54f4ff1a554add464803a9175 urwid-1.3.0.tar.gz" sha256sums="29f04fad3bf0a79c5491f7ebec2d50fa086e9d16359896c9204c6a92bc07aba2 urwid-1.3.0.tar.gz" sha512sums="2743488f2815e6abff8bf2450b2a3d5756fa026587512cf29a3850be0e585d7c2dd4d50fda7bf1589de32eed93637ac0ee88f002de4b9bee0a72dc6574ef6103 urwid-1.3.0.tar.gz"