# Contributor: Stuart Cardall # Contributor: Oleg Titov # Maintainer: Stuart Cardall pkgname=cython pkgver=0.29.17 pkgrel=0 pkgdesc="Cython is an optimising static compiler for both the Python & the extended Cython programming languages." url="https://cython.org/" arch="all" license="Apache-2.0" makedepends="py3-setuptools python3-dev" subpackages="cython-doc" source="cython-$pkgver.tar.gz::https://github.com/cython/cython/archive/$pkgver.tar.gz" # compatible fix for removing dev subpkg from apkbuild # cython is not a library but a compiler and does not need a dev subpackage provides=cython-dev build() { python3 setup.py build } check() { PYTHON=python3 make test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/cython/license" install -Dm 644 README.rst "$pkgdir/usr/share/doc/cython/readme.rst" } sha512sums="f722e4feb0fcd0de7b882d0ba7cd78c37b6aaa4438619607665ea269b207a482fab6ca65cf12bab54d94b5929776c973a270c0748ed35b0f88a72811bf90d4df cython-0.29.17.tar.gz"