# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py-raven _pkgname=raven-python pkgver=5.27.1 pkgrel=0 pkgdesc="Python client for Sentry" url="http://pypi.python.org/pypi/raven" arch="noarch" license="BSD" depends="" makedepends="py-setuptools python2-dev python3-dev py2-pytest py3-pytest" install="" subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" source="$pkgname-$pkgver.tar.gz::https://github.com/getsentry/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { mkdir -p "$pkgdir" } _py() { local python=$1 pkgdesc="$pkgdesc - $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { _py python2 replaces="$pkgname" } _py3() { _py python3 } md5sums="785c0fe977e70deff783cc91a5422dd7 py-raven-5.27.1.tar.gz" sha256sums="1f5cf661f1d11b47af948385a4dcf4ef3f1f935446c75ba0575e98beac611fc0 py-raven-5.27.1.tar.gz" sha512sums="2d84672961f27a5d0d03008a364e3590161b6700b43e8691878e774e7ebc47dcb422a23d4046e3f906f1d0d3f7743f736c953ade8554cf644c3cbb4f99a9a167 py-raven-5.27.1.tar.gz"