summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-05-13 20:35:54 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-05-13 20:35:54 (GMT)
commit5cd1b95e1f680f549c2e11ce30e0d22a3a887678 (patch)
tree66f2910cca7d5271fe3200f568c6222837809161
parent2a688c11c593658036b1463ec016d33e2587c6e7 (diff)
downloadlinhes_pkgbuild-5cd1b95e1f680f549c2e11ce30e0d22a3a887678.zip
linhes_pkgbuild-5cd1b95e1f680f549c2e11ce30e0d22a3a887678.tar.gz
linhes_pkgbuild-5cd1b95e1f680f549c2e11ce30e0d22a3a887678.tar.bz2
pyobject: initial inclusion
-rw-r--r--abs/core/python_modules/pygobject/PKGBUILD55
-rw-r--r--abs/core/python_modules/pygobject/__changelog1
2 files changed, 56 insertions, 0 deletions
diff --git a/abs/core/python_modules/pygobject/PKGBUILD b/abs/core/python_modules/pygobject/PKGBUILD
new file mode 100644
index 0000000..32e4c31
--- /dev/null
+++ b/abs/core/python_modules/pygobject/PKGBUILD
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru@archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python2-gobject pygobject-devel)
+pkgver=3.12.1
+pkgrel=1
+arch=(i686 x86_64)
+url="https://live.gnome.org/PyGObject"
+license=(LGPL)
+makedepends=(python2 python2-cairo gobject-introspection gnome-common)
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz)
+sha256sums=('da5fe04759e862d347b26b53a6aea0affa7cbe858b7004475fa8c7929496da35')
+
+prepare() {
+ mkdir build-py2 build-py3 devel
+ cd ${pkgbase}-${pkgver}
+ sed -i '/Werror=format/d' configure # gcc 4.8
+}
+
+build() {
+ cd build-py2
+ ../${pkgbase}-${pkgver}/autogen.sh --prefix=/usr --with-python=/usr/bin/python2
+ make
+
+# cd ../build-py3
+# ../${pkgbase}-${pkgver}/configure --prefix=/usr
+ make
+}
+
+#package_python-gobject() {
+# pkgdesc="Python 3 bindings for GObject"
+# depends=('gobject-introspection' 'python-cairo' "pygobject-devel=$pkgver")
+
+# cd build-py3
+# make DESTDIR="$pkgdir" install
+# rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+#}
+
+package_python2-gobject() {
+ pkgdesc="Python 2 bindings for GObject"
+ depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=$pkgver")
+
+ cd build-py2
+ make DESTDIR="$pkgdir" install
+ mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_pygobject-devel() {
+ pkgdesc="Development files for the pygobject bindings"
+ cd "devel"
+ mkdir -p "$pkgdir"/usr/{include,lib}
+ mv include "$pkgdir/usr/"
+ mv pkgconfig "$pkgdir/usr/lib/"
+}
diff --git a/abs/core/python_modules/pygobject/__changelog b/abs/core/python_modules/pygobject/__changelog
new file mode 100644
index 0000000..9715c21
--- /dev/null
+++ b/abs/core/python_modules/pygobject/__changelog
@@ -0,0 +1 @@
+PKGBUILD - comment out all python 3 stuff and only build for py 2