# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=cython
pkgver=0.27.3
pkgrel=0
pkgdesc="Cython is an optimising static compiler for both the Python & the extended Cython programming languages."
url="http://cython.org"
arch="all"
license="Apache-2.0"
depends=""
depends_dev="python2-dev py-pgen cython"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/cython/cython/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr \
		--root="$pkgdir" --optimize=1
}

sha512sums="6aadabbfb6f8b28d570ac586f993a47d8963a17cc7a5cbe1e31deb12e9ee03d794760a9fe8a6a704d232861f9b316b4ab415c096fc299f7df35e336302114d05  cython-0.27.3.tar.gz"
