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

Andrea Scarpino andrea at archlinux.org
Sat Sep 11 15:05:33 UTC 2010


    Date: Saturday, September 11, 2010 @ 11:05:32
  Author: andrea
Revision: 90422

python2 rebuild

Modified:
  kdesdk/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-09-11 13:29:43 UTC (rev 90421)
+++ PKGBUILD	2010-09-11 15:05:32 UTC (rev 90422)
@@ -24,7 +24,7 @@
          'kdesdk-strigi-analyzer'
          'kdesdk-umbrello')
 pkgver=4.5.1
-pkgrel=2
+pkgrel=3
 arch=('i686' 'x86_64')
 url='http://www.kde.org'
 license=('GPL' 'LGPL' 'FDL')
@@ -99,13 +99,16 @@
 
 package_kdesdk-kcachegrind() {
 	pkgdesc='Visualization of Performance Profiling Data'
-	depends=('kdebase-runtime' 'python')
+	depends=('kdebase-runtime' 'python2')
 	url="http://kde.org/applications/development/kcachegrind/"
 	install='kdesdk.install'
 	cd $srcdir/build/kcachegrind
 	make DESTDIR=$pkgdir install
 	cd $srcdir/build/doc/kcachegrind
 	make DESTDIR=$pkgdir install
+
+	# fix python 2.7 path
+	sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' ${pkgdir}/usr/bin/hotshot2calltree
 }
 
 package_kdesdk-kdeaccounts-plugin() {
@@ -189,6 +192,9 @@
 	make DESTDIR=$pkgdir install
 	cd $srcdir/build/doc/lokalize
 	make DESTDIR=$pkgdir install
+
+	# fix python 2.7 path
+	find ${pkgdir} -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
 }
 
 package_kdesdk-poxml() {
@@ -202,11 +208,14 @@
 
 package_kdesdk-scripts() {
 	pkgdesc='KDE SDK scripts'
-	depends=('python')
+	depends=('python2')
 	cd $srcdir/build/scripts
 	make DESTDIR=$pkgdir install
 	cd $srcdir/build/doc/scripts
 	make DESTDIR=$pkgdir install
+
+	# fix python 2.7 path
+	find ${pkgdir} -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
 }
 
 package_kdesdk-strigi-analyzer() {




More information about the arch-commits mailing list