APKBUILD 1.28 KB
Newer Older
1 2 3 4
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-raven
_pkgname=raven-python
5
pkgver=5.27.0
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
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
}

46 47 48
md5sums="d2d89032a01d077247de38b265cde14f  py-raven-5.27.0.tar.gz"
sha256sums="f9ffd0dd242901ce9f46952985524939e75a8a9ff499d2486b23be3141760542  py-raven-5.27.0.tar.gz"
sha512sums="8800c13a8b3749d3482878f738d2433e6465901fa0fbe2342e7b34da590d4ed4c89c6fb9fc76ca8912c35f4b4cc34cf76b8c8383d85518206a3d605fd2c5c711  py-raven-5.27.0.tar.gz"