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

Ray Rashif schiv at archlinux.org
Sun Oct 24 22:17:33 UTC 2010


    Date: Sunday, October 24, 2010 @ 18:17:33
  Author: schiv
Revision: 96817

upgpkg: libffado 2.0.1-2
fix optional python stuff for python2

Modified:
  libffado/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-10-24 22:17:31 UTC (rev 96816)
+++ PKGBUILD	2010-10-24 22:17:33 UTC (rev 96817)
@@ -5,7 +5,7 @@
 
 pkgname=libffado
 pkgver=2.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Driver for FireWire audio devices"
 arch=('i686' 'x86_64')
 url="http://www.ffado.org/"
@@ -30,6 +30,11 @@
     sed -i "s/-m32/-m32 $CFLAGS/g" SConstruct
   fi
 
+  # python2 fix
+  sed -i 's:python $SOURCE:python2 $SOURCE:' SConstruct
+  sed -i 's:python support/tools:python2 support/tools:' \
+    support/tools/SConscript
+
   scons PREFIX=/usr #ENABLE_OPTIMIZATIONS=True
 }
 
@@ -38,6 +43,11 @@
 
   scons DESTDIR="$pkgdir/" WILL_DEAL_WITH_XDG_MYSELF="True" install
 
+  # python2 fix
+  for i in $(grep '^#!.*bin.*python' -R "$pkgdir" | sed 's/:.*//'); do
+    sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' "$i"
+  done
+
   # desktop files & icons
   install -Dm644 support/xdg/ffado.org-ffadomixer.desktop \
     "$pkgdir/usr/share/applications/ffadomixer.desktop"




More information about the arch-commits mailing list