core/python-cython/PKGBUILD

31 lines
855 B
Bash
Raw Normal View History

pkgname=('python2-cython' 'python3-cython')
pkgbase=cython
2016-03-28 14:07:05 +08:00
pkgver=0.23.5
pkgrel=1
arch=(x86_64)
url="http://www.cython.org"
license=('APACHE')
2016-03-28 14:07:05 +08:00
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
source=("http://cython.org/release/Cython-$pkgver.tar.gz")
2016-03-28 14:07:05 +08:00
md5sums=('66b62989a67c55af016c916da36e7514')
package_python2-cython() {
depends=('python2' 'python2-setuptools')
pkgdesc="C-Extensions for Python 2"
cd $srcdir/Cython-$pkgver
python2 -O setup.py install --root=$pkgdir
}
package_python3-cython() {
depends=('python3' 'python3-setuptools')
pkgdesc="C-Extensions for Python 3"
cd $srcdir/Cython-$pkgver
python3 setup.py install --root=$pkgdir
mv $pkgdir/usr/bin/cygdb $pkgdir/usr/bin/cygdb3
mv $pkgdir/usr/bin/cython $pkgdir/usr/bin/cython3
mv $pkgdir/usr/bin/cythonize $pkgdir/usr/bin/cythonize3
}