# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=cython pkgver=0.22.1 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="python-dev py-pgen" makedepends="$depends_dev" install="" subpackages="$pkgname-dev" source="saveas-https://github.com/cython/cython/archive/$pkgver.tar.gz/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="2f8490e2a4ea325a0662551248a27150 cython-0.22.1.tar.gz" sha256sums="5e28c4b4d8f0aefa9e98fe67eaf07af9851202251141c7b25c1dc7bb7f326dfd cython-0.22.1.tar.gz" sha512sums="aca287b6d5d3f808d94a23c75455ec0b0d7779e250800b5cc1e630ddeded44f85e64057076637af873b6f2b2d62809d6d038babda9be83c481a8e581918e8010 cython-0.22.1.tar.gz"