updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lua-lm-git / PKGBUILD
blobaea92023e5ee74838b6726d57908c9d686c6f153
1 pkgname="lua-lm-git"
2 pkgver=20091107
3 pkgrel=1
4 pkgdesc='Lua module to work with loudmouth'
5 url="http://wiki.mcabber.com/index.php/Modules"
6 license=(GPL)
7 arch=('i686' 'x86_64')
8 depends=('lua' 'loudmouth')
9 makedepends=("git")
10 provides=('lua-lm')
12 _gitroot="http://isbear.unixzone.org.ua/source/lua-lm"
13 _gitname="lua-lm"
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
29         
32    msg "Building $pkgname ..."
33         cd $srcdir/$_gitname-build
34         
35         cmake -DMCABBER_INCLUDE_DIR=/usr/include/mcabber -DCMAKE_INSTALL_PREFIX=/usr .
36         make || return 1
37         DESTDIR=$pkgdir make install
39         rm -r $srcdir/$_gitname-build