From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/cython/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 community/cython/PKGBUILD (limited to 'community/cython') diff --git a/community/cython/PKGBUILD b/community/cython/PKGBUILD new file mode 100644 index 000000000..6924be749 --- /dev/null +++ b/community/cython/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 91947 2013-05-30 09:41:33Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: Igor Scabini + +pkgname=('cython' 'cython2') +pkgbase=cython +pkgver=0.19.1 +pkgrel=1 +pkgdesc="C-Extensions for Python " +arch=(i686 x86_64) +url="http://www.cython.org" +license=('APACHE') +makedepends=('python-distribute' 'python2-distribute') +source=("http://cython.org/release/Cython-$pkgver.tar.gz") +md5sums=('df4cfb2b8e3345272e3fc451b76bd630') + +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 +} -- cgit v1.2.3-54-g00ecf