# Maintainer: Fabien Valthier (hcooh) pkgname=python2-urlreader _pkgname=URLReader pkgver=0.0a1 pkgrel=1 pkgdesc="Simple Python package to download documents using HTTP." arch=('x86_64') url="http://hg.mtjm.eu/urlreader/tags" license=('GPL3') depends=('python2' 'python2-setuptools') makedepends=('python2-setuptools') provides=('python-urlreader') conflicts=('python-urlreader') replaces=('python-urlreader') categories=('network') source=("http://pypi.python.org/packages/source/U/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") md5sums=('5a96519a24099aae05fc0612d9cfd650') build() { cd $srcdir/$_pkgname-$pkgver } package() { cd $srcdir/$_pkgname-$pkgver export PYTHON="/usr/bin/python2" python2 setup.py install --root=$pkgdir/ --optimize=1 }