updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mcabber-module-uptime-hg / PKGBUILD
blob51140e440f40d4a38f9801810844f3cac0187003
1 # Contributor: Nickolay Stepanenko <nixtrian at gmail dot com>
2 # ___
3 _modulename=uptime
4 pkgname=mcabber-module-$_modulename-hg
5 replaces=mcabber-module-$_modulename-git
6 provides=mcabber-module-$_modulename-git
7 conflicts=mcabber-module-$_modulename-git
8 pkgver=13
9 pkgrel=2
10 pkgdesc="Module to show mcabber uptime"
11 url="http://wiki.mcabber.com/index.php/Modules"
12 license=(GPL)
13 arch=('i686' 'x86_64')
14 depends=('mcabber-hg' 'mcabber-module-pep-hg')
15 makedepends=("cmake" "mercurial" "mcabber-hg")
17 _hgroot="https://isbear.unixzone.org.ua/isbear"
18 # ___
19 _hgrepo="mcabber-$_modulename"
21 build() {
23    
24         cp -rf $srcdir/$_hgrepo $srcdir/$_hgrepo-build
25         
28         cd $srcdir/$_hgrepo-build
29         
30         cmake -DMCABBER_INCLUDE_DIR=/usr/include/mcabber -DCMAKE_INSTALL_PREFIX=/usr .
31         make || return 1
32         DESTDIR=$pkgdir make install
34         rm -r $srcdir/$_hgrepo-build