updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-python-sugar / PKGBUILD
blob6411381997f8f92d3026e5260099a4548d60ee8e
1 # Contributor: Cilyan Olowen <gaknar@gmail.com>
3 pkgname=gnome-python-sugar
4 _gpdver=2.30.0
5 _gpver=2.22.3
6 pkgver=0.88.0
7 pkgrel=1
8 pkgdesc="Gnome Python Bindings limited to librairies needed by Sugar"
9 arch=(i686 x86_64)
10 license=('GPL' 'LGPL')
11 options=('!libtool')
12 depends=('intltool' 'pygtk>=2.13.0' 'librsvg' 'libwnck' 'gconf' 'evince')
13 conflicts=('gnome-python-desktop' 'gnome-python')
14 provides=('gnome-python-desktop' 'gnome-python')
15 url="http://www.gnome.org"
16 source=(http://ftp.gnome.org/pub/gnome/sources/gnome-python-desktop/2.30/gnome-python-desktop-${_gpdver}.tar.bz2
17         http://ftp.gnome.org/pub/gnome/sources/gnome-python/2.22/gnome-python-${_gpver}.tar.bz2
18         wscript.patch)
19 md5sums=('a6d448d46a6b3062ce7a1b6a9fddfb48'
20          'ab12d94954a57de39b25eb7903d8429c'
21          '4d4fdf50ffeae04e3c3a422639670148')
22 build() {
23   # GConf python bindings
24   cd "${srcdir}/gnome-python-${_gpver}"
25   ./waf configure --prefix=/usr --enable-module gconf || return 1
26   ./waf build ${MAKEFLAGS} || return 1
27   ./waf install --destdir="${pkgdir}" || return 1
28   
29   # rsvg and wnck python bindings
30   cd "${srcdir}/gnome-python-desktop-${_gpdver}"
31   patch -p0 -i "${srcdir}/wscript.patch"
32   PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${pkgdir}/usr/lib/pkgconfig \
33     ./waf configure --prefix=/usr --enable-modules rsvg,wnck,evince || return 1
34   ./waf build ${MAKEFLAGS} || return 1
35   ./waf install --destdir="${pkgdir}" || return 1
36   
37   # Cleaning
38   cd "${pkgdir}/usr"
39   rm -rf include
40   rm -rf share/gtk-doc
41   rm -rf lib/python2.6/site-packages/gtk-2.0/gnomeprint
42   rm share/pygtk/2.0/argtypes/bonobo-arg-types.py
43   rm share/pygtk/2.0/defs/{printui,print}.defs