updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / telepathy-kde-chat-handler-git / PKGBUILD
blobefd65c1ed61a0ccf98e8a61b66003d49feae9d1a
1 # Maintainer: laloch <laloch@atlas.cz>
2 pkgname=telepathy-kde-chat-handler-git
3 pkgver=20110831
4 pkgrel=1
5 pkgdesc="Telepathy text chat handler"
6 arch=('i686' 'x86_64')
7 url="https://projects.kde.org/projects/playground/network/telepathy/telepathy-chat-handler"
8 license=('GPL2')
9 groups=('telepathy-kde-git')
10 depends=('kdebase-runtime' 'telepathy-qt4')
11 makedepends=('git' 'cmake' 'automoc4')
12 provides=('telepathy-kde-text-ui')
13 conflicts=('telepathy-kde-text-ui')
15 _gitroot=git://anongit.kde.org/telepathy-chat-handler
16 _gitname=telepathy-chat-handler
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin --depth=1
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname" --depth=1
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   rm -rf "$srcdir/$_gitname-build"
33   mkdir "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   cmake $srcdir/$_gitname \
37     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
38     -DCMAKE_BUILD_TYPE=Release
39   make
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir/" install
47 # vim:set ts=2 sw=2 et: