make doctests work
previously they would fail because sys.stdout object was captured by function
write() much earlier than doctest had any possibility to monkey patch it
# Maintainer: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
pkgname=python-opster
pkgver=1.2
pkgrel=1
pkgdesc="Python command line parsing speedster"
arch=(any)
url="http://hg.piranha.org.ua/opster/"
license=('BSD')
depends=('python2')
source=("http://pypi.python.org/packages/source/o/opster/opster-$pkgver.tar.gz")
md5sums=('0effe6d98d0b8436cb371fe0d3a30915')
build() {
cd "$srcdir/opster-$pkgver"
python2 setup.py build || return 1
python2 setup.py install --root=$pkgdir --optimize=1 || return 1
}