updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / pyduino-svn / PKGBUILD
blobb2971bcc2482d0eb2bebf50acb39c6d8557783fe
1 # Contributor: Joris Peeraer <jorispeeraer@gmail.com>
3 pkgname=pyduino-svn
4 pkgver=2
5 pkgrel=1
6 pkgdesc="A python interface for communicating to an Arduino with the Firmata protocol"
7 url="http://code.google.com/p/pyduino/"
8 arch=('i686' 'x86_64')
9 license=('GPL2')
10 depends=('python-pyserial')
11 makedepends=('subversion')
12 provides=('pyduino')
13 conflicts=('pyduino')
14 source=(firmata-2.1.patch)
15 md5sums=('32d032d27f8ca2ab808dfb2dcbd53903')
17 _svntrunk=http://pyduino.googlecode.com/svn/trunk/
18 _svnmod=pyduin-read-only
20 x_apply_patch=1
22 build() {
23   cd $startdir/src
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver)
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29   fi
31   msg "SVN checkout done or server timeout"
32   
33   rm -r $startdir/src/$_svnmod-build
34   cp -r $_svnmod $_svnmod-build
35   cd $_svnmod-build
36   
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