mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 14:44:36 +08:00
31 lines
855 B
Bash
31 lines
855 B
Bash
pkgname=('python2-cython' 'python3-cython')
|
|
pkgbase=cython
|
|
pkgver=0.23.5
|
|
pkgrel=1
|
|
arch=(x86_64)
|
|
url="http://www.cython.org"
|
|
license=('APACHE')
|
|
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
|
|
source=("http://cython.org/release/Cython-$pkgver.tar.gz")
|
|
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
|
|
}
|