4 pkgdesc="human computer interface using a camera and a projector"
6 url="http://mando.sourceforge.net/"
8 depends=('lapack' 'fftw' 'qt' 'libxtst' 'v4l-utils')
9 makedepends=('git' 'gcc-fortran' 'glut' 'boost')
12 md5sums=('b24aef06939beb5300b835805896ea0f'
13 '427e5832466726a86e5b55b1329d2e9e')
15 _gitroot="git://mando.git.sourceforge.net/gitroot/mando/mando"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
39 export CFLAGS="$CFLAGS -isystem $srcdir"
40 export CPPFLAGS="$CPPFLAGS -isystem $srcdir"
41 mkdir -p $srcdir/linux
42 cp $srcdir/videodev.h $srcdir/linux/videodev.h
43 [ -f Makefile ] || ./configure --prefix=/usr
48 cd "$srcdir/$_gitname-build"
49 make DESTDIR="$pkgdir/" install
52 echo -e '#!/bin/sh\nLD_PRELOAD=/usr/lib/libv4l/v4l1compat.so mando.bin "$*"' >mando