[arch-commits] Commit in cysignals/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Nov 16 06:59:04 UTC 2016


    Date: Wednesday, November 16, 2016 @ 06:59:04
  Author: arojas
Revision: 196014

Don't herdcode build dir (FS#51845)

Modified:
  cysignals/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-11-15 22:24:41 UTC (rev 196013)
+++ PKGBUILD	2016-11-16 06:59:04 UTC (rev 196014)
@@ -4,7 +4,7 @@
 pkgbase=cysignals
 pkgname=(python-cysignals python2-cysignals)
 pkgver=1.3.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Interrupt and signal handling for Cython"
 arch=(i686 x86_64)
 url="https://www.sagemath.org"
@@ -33,7 +33,7 @@
   python setup.py install --root="$pkgdir"
 
 # Fix include dir
-  sed -e "s|/build/cysignals/pkg/$pkgname||" -i "$pkgdir"/usr/lib/*/site-packages/cysignals/__init__.pxd
+  sed -e "s|include_dirs.*/lib/|include_dirs = /usr/lib/|" -i "$pkgdir"/usr/lib/*/site-packages/cysignals/__init__.pxd
 
 # Keep scripts in python2 package
   rm -r "$pkgdir"/usr/bin
@@ -49,5 +49,5 @@
   python2 setup.py install --root="$pkgdir"
 
 # Fix include dir
-  sed -e "s|/build/cysignals/pkg/$pkgname||" -i "$pkgdir"/usr/lib/*/site-packages/cysignals/__init__.pxd
+  sed -e "s|include_dirs.*/lib/|include_dirs = /usr/lib/|" -i "$pkgdir"/usr/lib/*/site-packages/cysignals/__init__.pxd
 }



More information about the arch-commits mailing list