updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pyclutter-git / PKGBUILD
bloba21d14f1927ef3da5f3575f80f712ac0536d9626
1 # Maintainer: Andrew Grigorev <andrew@ei-grad.ru>
3 pkgname=pyclutter-git
4 pkgver=20110210
5 pkgrel=3
6 pkgdesc="Python bindings to Clutter."
7 arch=('i686' 'x86_64')
8 url="http://www.clutter-project.org/"
9 license=('GPL')
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')
13 source=()
15 _gitroot="http://git.clutter-project.org/bindings/pyclutter"
16 _gitname="pyclutter"
18 build() {
19   cd $srcdir
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."
25   else
26     git clone $_gitroot
27   fi
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,'
41   msg "Starting build"
42   ./autogen.sh
43   ./configure --prefix=/usr
44   make || return 1
45   make DESTDIR="$startdir/pkg" install