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