updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / libkitclient-svn / PKGBUILD
blob0d0b297d11ba93b902947b50da768c803e16bb62
1 # Maintainer: Daniel Kozak kozzi11@gmail.com>
2 pkgname=libkitclient-svn
3 pkgver=271
4 pkgrel=2
5 pkgdesc="libkitclient devkit utility"
6 arch=('i686' 'x86_64')
7 url="http://merlin.fit.vutbr.cz/FITkit/uvod.html"
8 license=('GPL')
9 groups=()
10 depends=(qt libssh libftdi)
11 makedepends=(subversion cmake qt swig)
12 optdepends=()
13 provides=('libkitclient')
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install='libkitclient.install'
19 changelog=
20 source=()
21 noextract=()
22 md5sums=()
24 _svntrunk="http://merlin.fit.vutbr.cz/svn/FITkitUtils/trunk"
25 _svnmod=('fcmake' 'libkitclient' 'fkflash' 'pythonqt' 'qdevkit' 'qdevkit-plugins')
27 build() {
28   cd ${srcdir}
29   msg "Retrieaing libkitclient from SVN server...."
30   
31   if [ -d ${_svnmod[1]}/.svn ]; then
32   (cd ${_svnmod[1]} && svn up -r $pkgver)
33   else
34   svn co ${_svntrunk}/${_svnmod[1]} --config-dir ./ -r $pkgver ${_svnmod[1]}
35   fi
37   msg "SVN checkout done or server timeout"
38   msg "Starting make libkitclient..."
39   
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/
48   make
52 package() {
53   cd "$srcdir/${_svnmod[1]}-build"
54   make DESTDIR="$pkgdir/" install