1 # Maintainer: Daniel Kozak kozzi11@gmail.com>
2 pkgname=libkitclient-svn
5 pkgdesc="libkitclient devkit utility"
7 url="http://merlin.fit.vutbr.cz/FITkit/uvod.html"
10 depends=(qt libssh libftdi)
11 makedepends=(subversion cmake qt swig)
13 provides=('libkitclient')
18 install='libkitclient.install'
24 _svntrunk="http://merlin.fit.vutbr.cz/svn/FITkitUtils/trunk"
25 _svnmod=('fcmake' 'libkitclient' 'fkflash' 'pythonqt' 'qdevkit' 'qdevkit-plugins')
29 msg "Retrieaing libkitclient from SVN server...."
31 if [ -d ${_svnmod[1]}/.svn ]; then
32 (cd ${_svnmod[1]} && svn up -r $pkgver)
34 svn co ${_svntrunk}/${_svnmod[1]} --config-dir ./ -r $pkgver ${_svnmod[1]}
37 msg "SVN checkout done or server timeout"
38 msg "Starting make libkitclient..."
40 rm -rf "${_svnmod[1]}-build"
41 svn export ${_svnmod[1]} ${_svnmod[1]}-build
42 cd ${_svnmod[1]}-build
44 sed -i 's/COMMAND python/COMMAND python2/' swig/CMakeLists.txt
45 sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/env python2/' swig/test.py
46 echo "SUBSYSTEMS==\"usb\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", GROUP=\"uucp\", MODE=\"0664\"" > contrib/99-libftdi.rules
47 cmake -DPYTHON_INCLUDE_PATH=/usr/include/python2.7/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/
53 cd "$srcdir/${_svnmod[1]}-build"
54 make DESTDIR="$pkgdir/" install