updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / hybird-git / PKGBUILD
bloba32a0a270f578a66a16b505cd2dca97d188a8ac6
1 pkgname='hybird-git'
2 pkgver=20110731
3 pkgrel=1
4 arch=('i686' 'x86_64')
5 license=('GPL')
6 makedepends=('git' 'cmake')
7 depends=('gtk2' 'gdk-pixbuf2' 'glib2' 'openssl' 'libxml2' 'libnotify' 'gstreamer0.10' 'libxss' 'networkmanager' 'dbus-glib')
8 url='https://github.com/levin108/hybrid'
9 pkgdesc="Hybird is an lightweight IM framework, currently supports China Mobile Fetion protocol and xmpp protocol."
11 _gitroot='https://github.com/levin108/hybrid.git'
12 _gitname='hybrid'
13 build() {
14     cd "$srcdir"
15     msg "Connecting to github.com"
17     if [ -d "$_gitname" ] ;then
18         cd "$_gitname" && git pull origin
19         msg "The local files are updated."
20     else
21         git clone "$_gitroot"
22     fi
23     msg "GIT checkout done or server timeout"
25     cd "$srcdir/$_gitname"
27     git checkout master
28     mkdir -p build
29     cd build
30     cmake .. -DCMAKE_INSTALL_PREFIX=/usr
31     make
34 package() {
35     cd "$srcdir/$_gitname/build"
36     make DESTDIR="${pkgdir}" install