1 # Contributor: Lex Rivera <x-demon@x-demon.org> modify by bkmz <libbkmz.dev@gmail.com>
2 pkgname=qutim-protocol-mrim-tls-git
5 pkgdesc="Mrim protocol for Qutim"
14 _gitroot="git://gitorious.org/qutim/protocols.git"
15 _gitname="protocols/mrim"
19 if [ -d $srcdir/$_gitname ]
21 msg "Updating local repository..."
23 git pull origin master || return 1
24 msg "The local files are updated."
28 git checkout 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..."
42 rm -Rf ${_svnmod}-build