[arch-commits] Commit in pygobject2/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sun Aug 31 19:52:14 UTC 2014
Date: Sunday, August 31, 2014 @ 21:52:14
Author: heftig
Revision: 220850
Don't patch python files post-install
Modified:
pygobject2/trunk/PKGBUILD
----------+
PKGBUILD | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-08-31 19:51:34 UTC (rev 220849)
+++ PKGBUILD 2014-08-31 19:52:14 UTC (rev 220850)
@@ -4,7 +4,7 @@
pkgbase=pygobject2
pkgname=(python-gobject2 python2-gobject2 pygobject2-devel)
pkgver=2.28.6
-pkgrel=10
+pkgrel=11
arch=(i686 x86_64)
url="http://www.pygtk.org/"
license=(LGPL)
@@ -18,8 +18,11 @@
cd pygobject
autoreconf -fi
- cd ..
- cp -a pygobject python2-build
+ cp -a . ../python2-build
+
+ find -O3 ../python2-build \
+ \( -name '*.py' -o -name '*.py.in' \) \
+ -exec sed -i '1s|python$|&2|' {} +
}
build() {
@@ -55,9 +58,6 @@
cd python2-build
make DESTDIR="$pkgdir" install
- find "$pkgdir"/usr/share/pygobject -name '*.py' -exec \
- sed -i '1s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' {} +
-
rm -r "$pkgdir"/usr/share/gtk-doc
# Split devel stuff
More information about the arch-commits
mailing list