updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / kmess-stable-git / PKGBUILD
blob0d31f257bfb2cad43b7d5b58853a1323efef461a
1 # Contributor: Federico Chiacchiaretta <federico.chia at gmail.com>
2 pkgname=kmess-stable-git
3 pkgver=20110203
4 pkgrel=1
5 pkgdesc="A full-featured MSN Client for KDE - GIT stable branch version"
6 arch=('i686' 'x86_64')
7 url="http://www.kmess.org/"
8 license=('GPL')
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
19 _gitname=kmess-git
21 build() {
22   cd "$srcdir"
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."
28   else
29     git clone $_gitroot $_gitname
30   fi
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
45   mkdir ${srcdir}/build
46   cd ${srcdir}/build
48   #
49   # BUILD HERE
50   #
52   cmake ../$_gitbranch \
53     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
54     -DCMAKE_BUILD_TYPE=Release
55   make || return 1
58 package() {
59   cd ${srcdir}/build
60   make DESTDIR=${pkgdir} install || return 1
61