1 # Maintainer: Andrew Grigorev <andrew@ei-grad.ru>
6 pkgdesc="Python bindings to Clutter."
8 url="http://www.clutter-project.org/"
10 depends=('glib2>=2.16.0' 'gtk2>=2.10.0' 'clutter>=1.1.0' 'python2-cairo>=1.0.2' 'pygobject>=2.21.1' 'python2>=2.5.0')
11 provides=('pyclutter')
12 conflicts=('pyclutter')
15 _gitroot="http://git.clutter-project.org/bindings/pyclutter"
20 msg "Connecting to git.clutter-project.org GIT server...."
22 if [ -d $srcdir/$_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 if [ -e "$srcdir/$_gitname-build" ] ; then rm -rf "$srcdir/$_gitname-build" ; fi
33 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34 cd $srcdir/$_gitname-build
36 export PYTHON=/usr/bin/python2
37 find . -name '*.py' -print0|xargs -0 \
38 sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
39 -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
43 ./configure --prefix=/usr
45 make DESTDIR="$startdir/pkg" install