void-packages/srcpkgs/python-Cython/template
2021-02-21 00:11:41 -05:00

34 lines
1,019 B
Bash

# Template file for 'python-Cython'
pkgname=python-Cython
version=0.29.22
revision=1
wrksrc="Cython-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
depends="python-setuptools"
short_desc="C-Extensions for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0"
homepage="https://cython.org/"
changelog="https://raw.githubusercontent.com/cython/cython/master/CHANGES.rst"
distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
checksum=df6b83c7a6d1d967ea89a2903e4a931377634a297459652e4551734c48195406
alternatives="
cython:cygdb:/usr/bin/cygdb2
cython:cython:/usr/bin/cython2
cython:cythonize:/usr/bin/cythonize2"
python3-Cython_package() {
alternatives="
cython:cygdb:/usr/bin/cygdb3
cython:cython:/usr/bin/cython3
cython:cythonize:/usr/bin/cythonize3"
short_desc="${short_desc/Python2/Python3}"
depends="python3-setuptools"
pkg_install() {
vmove "usr/bin/*3"
vmove "usr/lib/python3*"
}
}