updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mcabber-module-jingle-git / PKGBUILD
blob6dbd66fabfb45a3245b06f9dde23a86b633f410c
1 # Maintainer: Shu <shu@shuu.ru>
2 pkgname="mcabber-module-jingle-git"
3 pkgver=20101110
4 pkgrel=1
5 pkgdesc="This project aims to implement jingle for mcabber as a set of modules."
6 url="https://github.com/alkino/mcabber-jingle/"
7 license=(GPL)
8 arch=('i686' 'x86_64')
9 depends=('mcabber-hg')
10 makedepends=("cmake" "git" "mcabber-hg")
12 _gitroot="https://github.com/alkino/mcabber-jingle.git"
13 _gitname="mcabber-jingle"
15 build() {
16         cd $srcdir
18   msg "Connecting to $_gitroot ..."
19         if [ -d $srcdir/$_gitname ] ; then
20                 cd $_gitname && git pull
21                 msg "The local files are updated."
22           else
23                 git clone $_gitroot
24         fi
25         
26   msg "GIT checkout done or server timeout"
27    
28         cp -rf $srcdir/$_gitname $srcdir/$_gitname-build
30   msg "Building $pkgname ..."
31         cd $srcdir/$_gitname-build
32         
33         cmake -DMCABBER_INCLUDE_DIR=/usr/include/mcabber -DCMAKE_INSTALL_PREFIX=/usr .
34         make || return 1
38 package() {
39   cd $srcdir/$_gitname-build
41         DESTDIR=$pkgdir make install
42     
43         rm -r $srcdir/$_gitname-build
46 # vim:set ts=2 sw=2 et: