updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qutim-protocol-mrim-tls-git / PKGBUILD
blob56056d804919a5acd0dc6e45fee8d335205dd1a9
1 # Contributor: Lex Rivera <x-demon@x-demon.org> modify by bkmz <libbkmz.dev@gmail.com>
2 pkgname=qutim-protocol-mrim-tls-git
3 pkgver=20100827
4 pkgrel=1
5 pkgdesc="Mrim protocol for Qutim"
6 arch=('i686' 'x86_64')
7 url="http://qutim.org"
8 license=('GPL')
9 depends=('qutim')
10 makedepends=()
11 optdepends=()
12 provides=()
14 _gitroot="git://gitorious.org/qutim/protocols.git"
15 _gitname="protocols/mrim"
17 build() {
18 msg "Git checkout"
19   if [ -d $srcdir/$_gitname ]
20   then
21   msg "Updating local repository..."
22   cd $_gitname 
23   git pull origin master || return 1
24   msg "The local files are updated."
25   else
26   git clone $_gitroot
27   fi
28 git checkout origin/sdk02
29 git pull origin sdk02
30 msg "Git checkout done or server timeout"
31 msg "Creating temporary build directory..."
33   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
34 #  cd $srcdir/$_gitname-build
36 msg "Building and installing..." 
37   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
38   make DESTDIR=${pkgdir} install || return 1
40 msg "Removing build directory..."
41   cd ${srcdir}
42   rm -Rf ${_svnmod}-build
44 # vim:syntax=sh