updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / telepathy-kde-send-file-git / PKGBUILD
blobc591f9b8fc0c82c3d36f29c95fcb4fcdd5e62d45
1 # Maintainer: George Brooke <george+arch.aur@george-brooke.co.uk>
2 # Contributor: laloch <laloch@atlas.cz>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=telepathy-kde-send-file-git
6 pkgver=20111226
7 pkgrel=1
8 pkgdesc="A File manager plugin to launch a file transfer job with a specified contact"
9 arch=('i686' 'x86_64')
10 url="https://projects.kde.org/projects/kdereview/ktp-send-file"
11 license=('GPL')
12 depends=('kdebase-runtime' 'telepathy-kde-common-internals-git>=20111210')
13 makedepends=('cmake' 'automoc4' 'git')
14 conflicts=('telepathy-kde-send-file'
15            'telepathy-send-file-git')
16 install=${pkgname}.install
18 _gitroot="git://anongit.kde.org/ktp-send-file.git"
19 _gitname="ktp-send-file"
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
38   mkdir ${srcdir}/build
39   cd ${srcdir}/build
41   cmake ../$_gitname \
42     -DCMAKE_INSTALL_PREFIX=/usr
44   make
47 package() {
48   cd ${srcdir}/build
49   make DESTDIR=${pkgdir} install