summaryrefslogtreecommitdiff
path: root/extra/pygobject
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-23 01:16:16 -0700
committerroot <root@rshg054.dnsready.net>2013-04-23 01:16:16 -0700
commitd1d93fafb9ef98fdd0c9a5a486c179c03cbbfb33 (patch)
treeda594e49962aa1b32a81dd8066423c4fd5fdcec6 /extra/pygobject
parenta5f6ca5d4e1aa12dfec53c3061df6e0198126fb4 (diff)
Tue Apr 23 01:16:16 PDT 2013
Diffstat (limited to 'extra/pygobject')
-rw-r--r--extra/pygobject/PKGBUILD44
1 files changed, 21 insertions, 23 deletions
diff --git a/extra/pygobject/PKGBUILD b/extra/pygobject/PKGBUILD
index 3ffba2d90..f7e309614 100644
--- a/extra/pygobject/PKGBUILD
+++ b/extra/pygobject/PKGBUILD
@@ -1,41 +1,39 @@
-# $Id: PKGBUILD 170844 2012-11-12 15:18:06Z heftig $
+# $Id: PKGBUILD 183322 2013-04-21 22:06:41Z heftig $
# Maintainer: Ionut Biru <ibiru@archlinux.org>
pkgbase=pygobject
pkgname=(python-gobject python2-gobject pygobject-devel)
-pkgver=3.4.2
+pkgver=3.8.1
pkgrel=1
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
url="https://live.gnome.org/PyGObject"
-license=('LGPL')
-makedepends=('python' 'python2' 'python-cairo' 'python2-cairo' 'gobject-introspection')
+license=(LGPL)
+makedepends=(python python2 python-cairo python2-cairo gobject-introspection)
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver::3}/$pkgbase-$pkgver.tar.xz)
options=('!libtool')
-sha256sums=('2b87ef3170be3a20a53fbdb348ae4ecb41a72a17ec6531baa67147c3437d2aad')
+sha256sums=('e85c8ec64238ce88ec1e905497f5a2eaa947a7f4050e338d21ec510d8a50eacb')
+
+prepare() {
+ mkdir build-py2 build-py3 devel
+ cd ${pkgbase}-${pkgver}
+ sed -i '/Werror=format/d' configure # gcc 4.8
+}
build() {
- cp -a "$pkgbase-$pkgver" python2-build
- mkdir devel
-
- (
- cd python2-build
- export PYTHON=/usr/bin/python2
- ./configure --prefix=/usr
- make
- )
-
- (
- cd "$pkgbase-$pkgver"
- ./configure --prefix=/usr
- make
- )
+ cd build-py2
+ ../${pkgbase}-${pkgver}/configure --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 "$pkgbase-$pkgver"
+ cd build-py3
make DESTDIR="$pkgdir" install
rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
}
@@ -44,7 +42,7 @@ package_python2-gobject() {
pkgdesc="Python 2 bindings for GObject"
depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=$pkgver")
- cd "python2-build"
+ cd build-py2
make DESTDIR="$pkgdir" install
mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
}