updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyclutter-gst-git / PKGBUILD
blob13c7cf6bef682e9957ff20df93e341812974d1ce
1 # Contributor: Andrew Grigorev <andrew@ei-grad.ru>
3 pkgname=pyclutter-gst-git
4 pkgver=20101022
5 pkgrel=2
6 pkgdesc="Python bindings to Clutter-GST (git version)."
7 arch=('i686' 'x86_64')
8 url="http://www.clutter-project.org/"
9 license=('LGPL')
10 depends=('python>=2.5.0 clutter>=1.0.0 clutter-gst>=0.10.0 pyclutter gstreamer0.10 gstreamer0.10-python' )
11 options=()
12 provides=('pyclutter-gst')
13 conflicts=('pyclutter-gst')
14 source=()
15 md5sums=()
17 _gitroot="http://git.clutter-project.org/bindings/pyclutter-gst"
18 _gitname="pyclutter-gst"
20 build() {
21   cd $srcdir
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."
27   else
28     git clone $_gitroot
29   fi
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
43   msg "Starting build"
44   ./autogen.sh
45   ./configure --prefix=/usr || return 1
46   make || return 1
47   make DESTDIR=$pkgdir install || return 1
49   rm -rf $srcdir/$_gitname-build