# Contributor: Matt Smith # Maintainer: Matt Smith pkgname=py-urwid _pkgname=urwid pkgver=1.2.1 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="6a05ada11b87e7b026b01fc5150855b0 urwid-1.2.1.tar.gz" sha256sums="9b9b5dabb7df6c0f12e84feed488f9a9ddd5c2d66d1b7c7c087055720b87c68c urwid-1.2.1.tar.gz" sha512sums="8f67887007912e79d32e55caf9615db4d01e3eff0fc9fe056b89e1e0c2db132178b5640dc38d2dbbe59036f6842d8b5e7161bcd49526f1baec25992dd4427fd6 urwid-1.2.1.tar.gz"