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

# source: BLFS
TARBALL=python-cython-$PKGVER.tar.gz
MD5SUM=a4d0f9fbc9c137f1a88937cd40e8c5ee
SRC_URL=https://github.com/cython/cython/releases/download/$PKGVER/Cython-$PKGVER.tar.gz
BUNDLE=

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

### 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
	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
}
