updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libnm-qt-git / PKGBUILD
blob13400e0773e5064ef0ece53a9ba8151a71ea0ad1
1 pkgname=libnm-qt-git
2 pkgver=20111029
3 pkgrel=1
4 pkgdesc='Qt-only wrapper for NetworkManager API.'
5 arch=('i686' 'x86_64')
6 url='http://www.kde.org'
7 license=('LGPL')
8 depends=('qt' 'libmm-qt-git' 'networkmanager')
9 makedepends=('cmake' 'git')
10 conflicts=('libnm-qt')
11 provides=('libnm-qt')
13 _gitroot="git://anongit.kde.org/libnm-qt"
14 _gitname="libnm-qt"
16 build() {
17   cd $srcdir
18   msg "Connecting to the GIT server...."
19   
20   if [[ -d $srcdir/$_gitname ]] ; then
21     cd $_gitname
22     git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
27   
28   msg "GIT checkout done"
29   msg "Starting make..."
30   if [[ -d ${srcdir}/build ]]; then
31     msg "Cleaning the previous build directory..."
32     rm -rf ${srcdir}/build
33   fi
34   mkdir $srcdir/build
35   cd $srcdir/build
36   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
37                 -DCMAKE_INSTALL_PREFIX=/usr
38   make
41 package() {
42   cd ${srcdir}/build
43   make DESTDIR=${pkgdir} install