updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / pymt / PKGBUILD
blobc24941ac0af1ebd91ab78c889cefd10527abf8db
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Ryan Coyner <rcoyner@gmail.com>
4 pkgname=pymt
5 pkgver=0.5.1
6 pkgrel=2
7 pkgdesc="An open source library for developing multi-touch applications"
8 arch=(i686 x86_64)
9 url="http://pymt.eu/"
10 license=('GPL')
11 depends=('python-opengl' 'python-pygame' 'python-imaging'
12          'gstreamer0.10-python' 'cython' 'mtdev')
13 conflicts=('pymt-git')
14 source=("https://github.com/tito/$pkgname/tarball/$pkgver")
15 md5sums=('58f410fc4410e0ca46fce49697626ba0')
17 build() {
18   cd "$srcdir/tito-$pkgname-90ded4b"
20   export PYTHON="python2"
22   # Python2 fix
23   sed -e "s_\(env python\).*_\12_" \
24       -e "s_\(bin/python\).*_\12_" \
25       -i `grep -Erl "(env python|bin/python)" .`
27   # Build Fix
28   sed -i "111 s_\$_ 'css',_" setup.py
30   # Cython fix
31   sed -i "s|\(self._indices = \)'|\1<bytes>'|" pymt/c_ext/c_graphics.pyx
33   python2 setup.py build
36 package() {
37   cd "$srcdir/tito-$pkgname-90ded4b"
39   python2 setup.py install --root="$pkgdir/"
42 # vim:set ts=2 sw=2 et: