updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / akonadi-vkontakte-git / PKGBUILD
blob237802c11f4ce338ff736614c21a93857836a56a
1 # Contributor: Nikolay Rysev <mad.f3ka@gmail.com>
2 pkgname=akonadi-vkontakte-git
3 pkgver=20110807
4 pkgrel=1
5 pkgdesc="VKontakte Resource for Akonadi"
6 arch=('i686' 'x86_64')
7 url="https://projects.kde.org/projects/playground/pim/akonadi-vkontakte"
8 license=('GPL')
9 depends=('kdepimlibs>=4.6.0' 'qjson' 'boost' 'libxslt' 'libkvkontakte-git')
10 makedepends=('pkgconfig' 'automoc4' 'git' 'cmake')
11 _gitname="akonadi-vkontakte"
12 _gitroot="git://anongit.kde.org/${_gitname}"
14 build() {
15   cd ${srcdir}
16   msg "Connecting to KDE git server..."
17   if [ -d ${srcdir}/${_gitname} ] ; then
18     cd ${_gitname} && git pull origin
19     msg "The local files are updated."
20   else
21     git clone ${_gitroot}
22     msg "Repo clone finished"
23     cd ${_gitname}
24   fi
25   cmake . \
26     -DCMAKE_INSTALL_PREFIX=/usr
27   make
30 package() {
31   cd ${srcdir}/${_gitname}
32   make DESTDIR=${pkgdir} install