updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / libmimic-qt-git / PKGBUILD
blob8afb44e225ee19fb3915f65b1e6087ef62ad4931
2 pkgname=libmimic-qt-git
3 pkgver=20100530
4 pkgrel=1
5 pkgdesc="A video encoding/decoding library webcam data of the MSN protocol"
6 arch=('i686' 'x86_64')
7 url="http://www.kmess.org/"
8 license=('GPL')
9 depends=('kdebase-runtime')
10 makedepends=('git' 'kdebase-lib' 'cmake' 'automoc4')
12 _gitroot="git://gitorious.org/kmess/libmimic-qt.git"
13 _gitname="libmimic-qt"
15 build() {
16  msg "Connecting to GIT server...."
18         [ -d $_gitname ] && {
19                 cd $_gitname
20                 git pull origin
21                 cd ..
23                 msg "Local files have been updated."
24         } || {
25                 git clone $_gitroot
26         }
28         msg "GIT checkout done or server timeout"
30         rm -rf $_gitname-build
31         git clone $_gitname $_gitname-build
32         cd $_gitname-build
34         msg "Starting make..."
36         cmake . -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
37                 -DCMAKE_BUILD_TYPE=Release
38         make || return 1
41 package() {
42   cd ${srcdir}/$_gitname-build
43   make DESTDIR=${pkgdir} install
44