1 # Contributor: Federico Chiacchiaretta <federico.chia at gmail.com>
2 pkgname=kmess-stable-git
5 pkgdesc="A full-featured MSN Client for KDE - GIT stable branch version"
7 url="http://www.kmess.org/"
9 depends=('kdebase-runtime' 'libxss' 'libxslt')
10 makedepends=('git' 'kdebase-lib' 'cmake' 'automoc4' 'docbook-xsl')
11 optdepends=('cabextract: Winks support'
12 'flashplugin: Winks support'
13 'kdebase-lib: Send files from dolphin using kmess')
14 conflicts=('kmess' 'kmess-git' 'kmess-svn' 'kmess-svn-stable' 'libisf-qt-git')
15 install=$pkgname.install
17 _gitroot="git://gitorious.org/kmess/kmess.git"
18 _gitbranch=kmess-2.0.x
23 msg "Connecting to GIT server...."
25 if [ -d $srcdir/$_gitname ] ; then
26 cd $srcdir/$_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
32 msg "GIT checkout done or server timeout"
34 rm -rf ${srcdir}/$_gitbranch
35 cp -r ${srcdir}/$_gitname ${srcdir}/$_gitbranch
37 msg "Selecting a branch: $_gitbranch"
38 cd $srcdir/$_gitbranch
39 git checkout -b $_gitbranch origin/$_gitbranch
40 git submodule update --init contrib/isf-qt
42 msg "Starting make..."
44 rm -rf ${srcdir}/build
52 cmake ../$_gitbranch \
53 -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
54 -DCMAKE_BUILD_TYPE=Release
60 make DESTDIR=${pkgdir} install || return 1