[arch-commits] Commit in cython/trunk (PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Thu Nov 17 15:48:46 UTC 2016
Date: Thursday, November 17, 2016 @ 15:48:46
Author: spupykin
Revision: 196247
upgpkg: cython 0.25.1-2
upd
Modified:
cython/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-17 15:46:30 UTC (rev 196246)
+++ PKGBUILD 2016-11-17 15:48:46 UTC (rev 196247)
@@ -5,7 +5,7 @@
pkgname=('cython' 'cython2')
pkgbase=cython
pkgver=0.25.1
-pkgrel=1
+pkgrel=2
pkgdesc="C-Extensions for Python"
arch=(i686 x86_64)
url="http://cython.org"
@@ -21,6 +21,11 @@
python setup.py install --root="$pkgdir"
sed -i 's|#!.*python|#!/usr/bin/python3|' "$pkgdir"/usr/bin/*
+
+ for f in cygdb cython cythonize; do
+ mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}3
+ ln -s ${f}3 "$pkgdir"/usr/bin/$f
+ done
}
package_cython2() {
@@ -29,7 +34,7 @@
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
- mv "$pkgdir"/usr/bin/cythonize "$pkgdir"/usr/bin/cythonize2
+ for f in cygdb cython cythonize; do
+ mv "$pkgdir"/usr/bin/$f "$pkgdir"/usr/bin/${f}2
+ done
}
More information about the arch-commits
mailing list