1 # Maintainer: laloch <laloch@atlas.cz>
2 pkgname=telepathy-kde-chat-handler-git
5 pkgdesc="Telepathy text chat handler"
7 url="https://projects.kde.org/projects/playground/network/telepathy/telepathy-chat-handler"
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
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."
26 git clone "$_gitroot" "$_gitname" --depth=1
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
43 cd "$srcdir/$_gitname-build"
44 make DESTDIR="$pkgdir/" install
47 # vim:set ts=2 sw=2 et: