updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / telepathy-kde-approver-git / PKGBUILD
blob6252f877e37d105346c82578980139c98ba36248
1 # Maintainer: George Brooke <george+arch.aur@george-brooke.co.uk>
2 # Contributor: laloch <laloch@atlas.cz>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Laurent Carlier <lordheavym@gmail.com>
6 pkgname=telepathy-kde-approver-git
7 pkgver=20111226
8 pkgrel=1
9 pkgdesc="KDE Channel Approver for Telepathy."
10 arch=('i686' 'x86_64')
11 url="https://projects.kde.org/projects/kdereview/ktp-approver"
12 license=('GPL')
13 depends=('kdelibs' 'telepathy-qt4-git>=20111210-1')
14 makedepends=('cmake' 'automoc4' 'git')
15 conflicts=('telepathy-kde-approver'
16            'telepathy-approver-git')
18 _gitroot="git://anongit.kde.org/ktp-approver.git"
19 _gitname="ktp-approver"
21 build() {
22   cd ${srcdir}
24   msg "Connecting to the GIT server...."
25   
26   if [[ -d ${srcdir}/$_gitname ]] ; then
27     cd $_gitname
28     git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot
32   fi
33   
34   msg "GIT checkout done"
35   msg "Starting make..."
36   
37   rm -rf ${srcdir}/build && mkdir ${srcdir}/build
38   cd ${srcdir}/build
40   cmake ../$_gitname \
41     -DCMAKE_INSTALL_PREFIX=/usr
43   make
46 package() {
47   cd ${srcdir}/build
49   make DESTDIR=${pkgdir} install