1 # Contributor: Andrew Grigorev <andrew@ei-grad.ru>
3 pkgname=pyclutter-gst-git
6 pkgdesc="Python bindings to Clutter-GST (git version)."
8 url="http://www.clutter-project.org/"
10 depends=('python>=2.5.0 clutter>=1.0.0 clutter-gst>=0.10.0 pyclutter gstreamer0.10 gstreamer0.10-python' )
12 provides=('pyclutter-gst')
13 conflicts=('pyclutter-gst')
17 _gitroot="http://git.clutter-project.org/bindings/pyclutter-gst"
18 _gitname="pyclutter-gst"
22 msg "Connecting to git.clutter-project.org GIT server...."
24 if [ -d $srcdir/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
35 cd $srcdir/$_gitname-build
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,'
41 export PYTHON=/usr/bin/python2
45 ./configure --prefix=/usr || return 1
47 make DESTDIR=$pkgdir install || return 1
49 rm -rf $srcdir/$_gitname-build