updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pyclutter-gst / PKGBUILD
blob663d72c9b257ad3367e10464949cdacf90d3e4b6
1 # Contributor: Andrew Grigorev <andrew@ei-grad.ru>
3 pkgname=pyclutter-gst
4 pkgver=1.0.0
5 pkgrel=4
6 pkgdesc="Python bindings to Clutter-GST."
7 arch=('i686' 'x86_64')
8 url="http://www.clutter-project.org/"
9 license=('GPL')
10 depends=('clutter>=1.0.0' 'gstreamer0.10' 'clutter-gst>=1.0.0' 'python2>=2.5.0' 'pyclutter' 'gstreamer0.10-python')
11 source=(http://www.clutter-project.org/sources/$pkgname/1.0/$pkgname-$pkgver.tar.bz2)
12 md5sums=('b1cc99a70042bb91ad75937405ed64d9')
14 build() {
15   cd "$startdir/src/$pkgname-$pkgver"
17   find . -name '*.py' -print0|xargs -0 \
18       sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
19              -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
21   # this is optional here, autoconf2.65-generated script finds python2 well
22   # without any hints... can't say that aboud autoconf-2.68..
23   export PYTHON=/usr/bin/python2
25   ./configure --prefix=/usr
26   make || return 1
27   make DESTDIR="$startdir/pkg" install