1 # Maintainer: Artem A. Klevtsov unikum.pm@gmail.com
2 pkgname=konnectionmonitor-git
5 pkgdesc="Monitor incoming and outgoing TCP connections"
7 url="http://kde-apps.org/content/show.php/KonnectionMonitor?content=140883"
10 makedepends=('git' 'cmake')
12 _gitroot='git://gitorious.org/konnectionmonitor/konnectionmonitor.git'
13 _gitname='konnectionmonitor'
18 msg "Connecting to GIT server..."
19 if [ -d ${_gitname} ]; then
20 cd ${_gitname} && git pull origin
21 msg "The local files are updated."
26 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
29 if [ -d "${srcdir}/${_gitname}/build" ]; then
30 rm -rf "${srcdir}/${_gitname}/build"
32 mkdir "${srcdir}/${_gitname}/build"
33 cd "${srcdir}/${_gitname}/build"
34 cmake .. -DCMAKE_INSTALL_PREFIX=/usr
38 cd "${srcdir}/${_gitname}/build"
39 make DESTDIR="${pkgdir}" install
40 rm -rf "${srcdir}/${_gitname}/build"