mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 13:24:40 +08:00
32 lines
891 B
Bash
32 lines
891 B
Bash
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
|
pkgname=('python2-cython' 'python3-cython')
|
|
pkgbase=cython
|
|
pkgver=0.23.4
|
|
pkgrel=2
|
|
arch=(x86_64)
|
|
url="http://www.cython.org"
|
|
license=('APACHE')
|
|
makedepends=('python3-setuptools' 'python2-setuptools')
|
|
source=("http://cython.org/release/Cython-$pkgver.tar.gz")
|
|
md5sums=('157df1f69bcec6b56fd97e0f2e057f6e')
|
|
|
|
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
|
|
}
|