# $Id: PKGBUILD 113605 2014-06-26 11:11:07Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Igor Scabini pkgname=('cython' 'cython2') pkgbase=cython pkgver=0.20.2 pkgrel=1 pkgdesc="C-Extensions for Python " arch=(i686 x86_64) url="http://www.cython.org" license=('APACHE') makedepends=('python-setuptools' 'python2-setuptools') source=("http://cython.org/release/Cython-$pkgver.tar.gz") md5sums=('7fc13e1c665bdf7cea19ad08906af91f') package_cython() { depends=('python' 'python-setuptools') cd $srcdir/Cython-$pkgver python setup.py install --root=$pkgdir sed -i 's|#!.*python|#!/usr/bin/python3|' $pkgdir/usr/bin/* } package_cython2() { depends=('python2' 'python2-setuptools') cd $srcdir/Cython-$pkgver python2 setup.py install --root=$pkgdir mv $pkgdir/usr/bin/cygdb $pkgdir/usr/bin/cygdb2 mv $pkgdir/usr/bin/cython $pkgdir/usr/bin/cython2 }