1 # Contributor: Joris Peeraer <jorispeeraer@gmail.com>
6 pkgdesc="A python interface for communicating to an Arduino with the Firmata protocol"
7 url="http://code.google.com/p/pyduino/"
10 depends=('python-pyserial')
11 makedepends=('subversion')
14 source=(firmata-2.1.patch)
15 md5sums=('32d032d27f8ca2ab808dfb2dcbd53903')
17 _svntrunk=http://pyduino.googlecode.com/svn/trunk/
18 _svnmod=pyduin-read-only
25 if [ -d $_svnmod/.svn ]; then
26 (cd $_svnmod && svn up -r $pkgver)
28 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31 msg "SVN checkout done or server timeout"
33 rm -r $startdir/src/$_svnmod-build
34 cp -r $_svnmod $_svnmod-build
37 msg "Applying patches"
38 patch -p0 -i $srcdir/firmata-2.1.patch || return 1
40 msg "Starting make..."
41 python setup.py install --root=$startdir/pkg || return 1