updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / telepathy-kde-auth-handler-git / PKGBUILD
blobffb4261637ed07d90dcd176c1198f33b60c585cf
1 # Maintainer: George Brooke <george+arch.aur@george-brooke.co.uk>
2 # Contributor: Adria Arrufat <swiftscythe@gmail.com>
3 pkgname=telepathy-kde-auth-handler-git
4 pkgver=20111226
5 pkgrel=1
6 pkgdesc="Provides UI/KWallet Integration For Passwords and SSL Errors on Account Connect"
7 arch=('i686' 'x86_64')
8 url="https://projects.kde.org/projects/kdereview/ktp-auth-handler"
9 license=("GPL")
10 depends=('telepathy-kde-common-internals-git')
11 makedepends=('git' 'cmake' 'automoc4')
14 _gitroot="git://anongit.kde.org/ktp-auth-handler.git"
15 _gitname="ktp-auth-handler"
18 build() {
19   cd ${srcdir}
20   msg "Connecting to GIT server...."
22   if [ -d "${srcdir}/$_gitname" ] ; then
23     cd ${_gitname}
24     git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf ${srcdir}/build && mkdir -p ${srcdir}/build
34   cd ${srcdir}/build 
36   cmake ../$_gitname \
37     -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix )
38   
39   make
42 package() {
43   cd ${srcdir}/build
44   
45   make DESTDIR=${pkgdir} install