1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
6 pkgdesc="An open source library for developing multi-touch applications."
10 depends=('python-pygame' 'python-imaging' 'gstreamer0.10-python' 'python-opengl' 'cython')
13 conflicts=('pymt' 'pymt-svn')
14 replaces=('pymt' 'pymt-svn')
16 _gitroot="git://github.com/tito/pymt.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
42 export PYTHON="python2"
43 sed -i "s|env python|&2|;s|bin/python|&2|" \
44 `grep -Erl "(env python|bin/python)" .`
46 python2 setup.py build
50 cd "$srcdir/$_gitname-build"
52 python2 setup.py install --root=$pkgdir