### this file is sourced not run
PKGVER=3.0.8
PKGBUILD=1
PKGARCH=x86_64

# source: step
TARBALL=python-cython-$PKGVER.tar.gz
MD5SUM=9f7baaa983e1bd06eaeb4fa0adfc77e5
SRC_URL=https://files.pythonhosted.org/packages/source/C/Cython/Cython-$PKGVER.tar.gz
BUNDLE=

SLACKREQ='python3'
SLACKDESC="python3-cython3: python3-cython3 $PKGVER (Python optimising compiler)
python3-cython3:
python3-cython3: Cython is an optimising static compiler for both the Python
python3-cython3: programming language and the extended Cython programming
python3-cython3: language (based on Pyrex). It makes writing C extensions for
python3-cython3: Python as easy as Python itself.
python3-cython3:
python3-cython3: This Cython for Python3 from the new 3.x branch.
python3-cython3:
python3-cython3: https://cython.org/
python3-cython3:
"
SLACKCON="python3-cython"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	#pkg_build_pip3modules Cython && # works too - this is the BLFS way
	#pkg_build_python3modules &&     # still works

	# following is essentially the same as pkg_build_python3modules
	cd /tmp/Cython* &&
	python3 setup.py build_ext install --optimize=1 \
		--single-version-externally-managed --root / &&

	pkg_build_slackdesc &&

	# prevent name clash with package python-cython
	mv -v /usr/bin/cythonize /usr/bin/cythonize3 &&

	# multilib
	mv -v /usr/bin/cython{,3-64} &&
	mv -v /usr/bin/cygdb{,3-64} &&
	ln -sfv multiarch_wrapper /usr/bin/cython3 &&
	ln -sfv multiarch_wrapper /usr/bin/cygdb3
}

# vim:ft=sh:
