updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / kopete-fetion-git / PKGBUILD
blobfcac7e5e5a24ceb39d8370c48434d8888a85b4a9
1 # Contributor: Tilo Brueckner  blueperil at gmx de
3 pkgname=kopete-fetion-git
4 pkgver=20110211
5 pkgrel=1
6 pkgdesc="Fetion for Kopete is a protocol plugin for Kopete allowing access to the China Mobile Fetion."
7 arch=('i686' 'x86_64')
8 url="http://gitweb.kde.org/scratch/nihui/kopete-fetion.git"
9 license=('GPL')
10 depends=('kdenetwork-kopete' 'openssl')
11 makedepends=('make' 'cmake' 'automoc4')
13 _gitroot=git://anongit.kde.org/scratch/nihui/kopete-fetion
14 _gitname=kopete-fetion
16 build() {
17     msg "Connecting to anongit.kde.org GIT server...."
19     if [ -d $srcdir/$_gitname ] ; then
20         cd $_gitname && git reset --hard HEAD && git pull origin
21         msg "The local files are updated."
22     else
23         git clone $_gitroot
24         cd $_gitname
25     fi
26     
27     cd $srcdir/$_gitname
29     cd $srcdir/
31     if [ ! -d build ] ; then
32         mkdir build
33     fi
35     cd build
36     cmake ../$_gitname -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` || return 1
37     make || return 1
39 package() {
40   cd $srcdir/build
42   make DESTDIR=$pkgdir install || return 1
44 md5sums=('df7b2eb26694c44af5a276d4a0a6e7b8')
45 md5sums=('f652fcc6e5abbc72e52f585d1b0db82b')