blob: caf0c6d349b58098c88a7e1bd5a9689620b3e35c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $Id: PKGBUILD 104512 2014-01-22 06:54:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Igor Scabini <furester @ gmail.com>
pkgname=('cython' 'cython2')
pkgbase=cython
pkgver=0.20
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=('6563dad21e2b5e31f9f7262a60dd0550')
build() {
true
}
package_cython() {
depends=('python')
cd $srcdir/Cython-$pkgver
python setup.py install --root=$pkgdir
sed -i 's|#!.*python|#!/usr/bin/python3|' $pkgdir/usr/bin/*
}
package_cython2() {
depends=('python2')
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
}
|