updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / konnectionmonitor-git / PKGBUILD
blob95a383c52d4df4391313aa6b75da4e86c6cf26bb
1 # Maintainer: Artem A. Klevtsov unikum.pm@gmail.com
2 pkgname=konnectionmonitor-git
3 pkgver=20110707
4 pkgrel=1
5 pkgdesc="Monitor incoming and outgoing TCP connections"
6 arch=('i686' 'x86_64')
7 url="http://kde-apps.org/content/show.php/KonnectionMonitor?content=140883"
8 license=('GPL')
9 depends=('qt')
10 makedepends=('git' 'cmake')
12 _gitroot='git://gitorious.org/konnectionmonitor/konnectionmonitor.git'
13 _gitname='konnectionmonitor'
15 build() {
16   cd ${srcdir}
18   msg "Connecting to GIT server..."
19   if [ -d ${_gitname} ]; then
20     cd ${_gitname} && git pull origin
21     msg "The local files are updated."
22   else
23     git clone ${_gitroot}
24     cd ${_gitname}
25   fi
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"
31   fi
32   mkdir "${srcdir}/${_gitname}/build"
33   cd "${srcdir}/${_gitname}/build"
34   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
37 package() {
38   cd "${srcdir}/${_gitname}/build"
39   make DESTDIR="${pkgdir}" install
40   rm -rf "${srcdir}/${_gitname}/build"