updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / telepathy-filetransfer-handler-git / PKGBUILD
blobfef28fc1e0290882bc94ffb99f7b19dc87c716cd
1 # Maintainer: George Brooke <george+arch.aur@george-brooke.co.uk>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=telepathy-filetransfer-handler-git
5 pkgver=20110802
6 pkgrel=1
7 pkgdesc="KDE Telepathy file transfer handler"
8 arch=('i686' 'x86_64')
9 url="http://www.kde.org"
10 license=('GPL')
11 depends=('kdelibs' 'telepathy-qt4-git')
12 conflicts=('telepathy-kde-filetransfer-handler')
13 makedepends=('cmake' 'automoc4' 'git')
15 _gitroot="git://anongit.kde.org/telepathy-filetransfer-handler.git"
16 _gitname="telepathy-filetransfer-handler"
18 build() {
19   cd ${srcdir}
21   msg "Connecting to the GIT server...."
22   
23   if [[ -d ${srcdir}/$_gitname ]] ; then
24     cd $_gitname
25     git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
30   
31   msg "GIT checkout done"
32   msg "Starting make..."
33   
34   rm -rf ${srcdir}/build
35   mkdir ${srcdir}/build
36   cd ${srcdir}/build
38   cmake ../$_gitname \
39     -DCMAKE_BUILD_TYPE=Release \
40     -DCMAKE_INSTALL_PREFIX=/usr
42   make
45 package() {
46   cd ${srcdir}/build
47   make DESTDIR=${pkgdir} install