summaryrefslogtreecommitdiff
path: root/extra/pygobject2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pygobject2/PKGBUILD')
-rw-r--r--extra/pygobject2/PKGBUILD24
1 files changed, 9 insertions, 15 deletions
diff --git a/extra/pygobject2/PKGBUILD b/extra/pygobject2/PKGBUILD
index cc05dd543..a66600d53 100644
--- a/extra/pygobject2/PKGBUILD
+++ b/extra/pygobject2/PKGBUILD
@@ -1,15 +1,14 @@
-# $Id: PKGBUILD 136848 2011-09-02 11:44:37Z ibiru $
+# $Id: PKGBUILD 139421 2011-10-01 19:01:05Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgbase=pygobject2
pkgname=(python-gobject2 python2-gobject2 pygobject2-devel)
pkgver=2.28.6
-pkgrel=1
+pkgrel=4
arch=('i686' 'x86_64' 'mips64el')
url="http://www.pygtk.org/"
license=('LGPL')
-depends=('glib2' 'gobject-introspection')
-makedepends=(python python2 python-cairo python2-cairo)
+makedepends=('python' 'python2')
source=(http://ftp.gnome.org/pub/gnome/sources/pygobject/${pkgver%.*}/pygobject-${pkgver}.tar.xz
python3-fix-build.patch
python3-fix-maketrans.patch)
@@ -26,7 +25,7 @@ build() {
(
cd python2-build
export PYTHON=/usr/bin/python2
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --disable-introspection
make
)
@@ -36,14 +35,14 @@ build() {
patch -Np1 -i "${srcdir}/python3-fix-build.patch"
patch -Np1 -i "${srcdir}/python3-fix-maketrans.patch"
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --disable-introspection
make
)
}
package_python-gobject2() {
pkgdesc="Python 3 bindings for GObject2"
- depends+=('python' 'python-cairo' 'pygobject2-devel')
+ depends=('glib2' 'pygobject2-devel' 'python')
replaces=('py3gobject')
provides=("py3gobject=$pkgver")
@@ -56,7 +55,7 @@ package_python-gobject2() {
package_python2-gobject2() {
pkgdesc="Python 2 bindings for GObject2"
- depends+=('python2' 'python2-cairo' 'pygobject2-devel')
+ depends=('glib2' 'pygobject2-devel' 'python2')
replaces=('pygobject')
provides=("pygobject=$pkgver")
@@ -67,23 +66,18 @@ package_python2-gobject2() {
xargs sed -i "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|"
# Split devel stuff
- mv "$pkgdir"/usr/{bin,include,lib/pkgconfig,share/{gtk-doc,pygobject/{2.0/codegen,xsl}}} \
+ mv "$pkgdir"/usr/{include,lib/pkgconfig,share/{gtk-doc,pygobject/xsl}} \
"$srcdir/devel/"
}
package_pygobject2-devel() {
pkgdesc="Development files for the pygobject bindings"
- depends=(python2)
- replaces=pygobject-devel
- provides=pygobject-devel
cd "${srcdir}/devel"
- mkdir -p "$pkgdir"/usr/{include,lib,share/pygobject/2.0}
+ mkdir -p "$pkgdir"/usr/{include,lib,share/pygobject}
- mv bin "$pkgdir/usr/"
mv include "$pkgdir/usr/"
mv pkgconfig "$pkgdir/usr/lib/"
mv gtk-doc "$pkgdir/usr/share/"
- mv codegen "$pkgdir/usr/share/pygobject/2.0/"
mv xsl "$pkgdir/usr/share/pygobject/"
}