1 # Maintainer: Luca Bennati <lucak3 AT gmail DOT com>
3 pkgname=ktechlab-zoltan_p-git
6 pkgdesc="IDE for electronic circuits and microcontrollers. KDE4 git version"
8 url="http://sourceforge.net/projects/ktechlab"
10 depends=('kdebase-runtime' 'kdevplatform' 'gpsim')
11 makedepends=('cmake' 'git')
13 conflicts=('ktechlab')
14 install=ktechlab.install
16 _gitroot=git://ktechlab.git.sourceforge.net/gitroot/ktechlab/ktl-zoltan_p
21 msg "Connecting to GIT server...."
23 if [ -d "${_gitname}" ] ; then
24 cd "${_gitname}" && git pull origin
25 msg "The local files are updated."
27 git clone "${_gitroot}" "${_gitname}"
30 msg "GIT checkout done or server timeout"
33 msg "Starting source code configuration..."
34 mkdir -p build && cd build
35 cmake "${srcdir}/${_gitname}" \
36 -DCMAKE_BUILD_TYPE=Release \
37 -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
39 msg "Starting make..."
44 # cd "${srcdir}/build"
51 make DESTDIR="${pkgdir}/" install