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

# source: james
TARBALL=Cython-$PKGVER.tar.gz
MD5SUM=fa01ba71b1e3136b0f12e3ed8958ea02
SRC_URL=https://files.pythonhosted.org/packages/d2/12/8ef44cede251b93322e8503fd6e1b25a0249fa498bebec191a5a06adbe51/$TARBALL
BUNDLE=

SLACKREQ='python' 
SLACKDESC="python-cython: python-cython $PKGVER (Python optimising compiler)  
python-cython:  
python-cython: Cython is an optimising static compiler for both the Python 
python-cython: programming language and the extended Cython programming 
python-cython: language (based on Pyrex). It makes writing C extensions for 
python-cython: Python as easy as Python itself.  
python-cython: 
python-cython: 
python-cython: 
python-cython: 
python-cython:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	! [ -e /usr/bin/env ] && ln -sf /tools/bin/env /usr/bin
	cd /tmp/Cython*/
	python setup.py install --optimize=1 \
		--single-version-externally-managed --root / &&
	rm -f /usr/bin/env &&
	pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/cython{,-64} &&
	mv -v /usr/bin/cygdb{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/cython &&
	ln -sfv multiarch_wrapper /usr/bin/cygdb
}
