pkgname=python2-traceback2 pkgver=1.4.0 pkgrel=1 pkgdesc='Backports of the traceback module' arch=('any') url='http://pypi.python.org/pypi/traceback2' license=('PSF') depends=('python2-linecache2' 'python2-six') makedepends=('python2-setuptools' 'python2-pbr') source=("https://pypi.python.org/packages/source/t/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz") sha256sums=('05acc67a09980c2ecfedd3423f7ae0104839eccb55fc645773e1caa0951c3030') package() { cd ${pkgname#*-}-${pkgver} python2 setup.py install --root="${pkgdir}" --optimize='1' }