summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/python_modules/pygobject2/PKGBUILD35
1 files changed, 17 insertions, 18 deletions
diff --git a/abs/core/python_modules/pygobject2/PKGBUILD b/abs/core/python_modules/pygobject2/PKGBUILD
index f4e921e..ba3d035 100644
--- a/abs/core/python_modules/pygobject2/PKGBUILD
+++ b/abs/core/python_modules/pygobject2/PKGBUILD
@@ -4,12 +4,11 @@
pkgbase=pygobject2
pkgname=(python2-gobject2 pygobject2-devel)
pkgver=2.28.6
-pkgrel=9
+pkgrel=12
arch=(i686 x86_64)
url="http://www.pygtk.org/"
license=(LGPL)
makedepends=(python2 git)
-options=('!libtool')
# pygobject-2-28 branch: https://git.gnome.org/browse/pygobject/log/?h=pygobject-2-28
source=('git://git.gnome.org/pygobject#commit=9456ba7')
@@ -19,8 +18,11 @@ prepare() {
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() {
@@ -30,22 +32,22 @@ build() {
make
cd ../pygobject
- ./configure --prefix=/usr --disable-introspection
- make
+# ./configure --prefix=/usr --disable-introspection
+# make
}
-package_python-gobject2() {
- pkgdesc="Python 3 bindings for GObject2"
- depends=(glib2 pygobject2-devel python)
- replaces=(py3gobject)
- provides=("py3gobject=$pkgver")
+#package_python-gobject2() {
+# pkgdesc="Python 3 bindings for GObject2"
+# depends=(glib2 pygobject2-devel python)
+# replaces=(py3gobject)
+# provides=("py3gobject=$pkgver")
- cd pygobject
- make DESTDIR="$pkgdir" install
+# cd pygobject
+# make DESTDIR="$pkgdir" install
# Delete devel stuff
- rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}}
-}
+# rm -r "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}}
+#}
package_python2-gobject2() {
pkgdesc="Python 2 bindings for GObject2"
@@ -56,9 +58,6 @@ package_python2-gobject2() {
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