updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / bluedevil-git / PKGBUILD
blob2ba8d48222de60008aec8a8bde37ef70a6c224ce
1 # Contributor: Andrea Scarpino <andrea@archlinux.org>
2 # Contributor: mosra <mosra@centrum.cz>
4 pkgname=bluedevil-git
5 pkgver=20110604
6 pkgrel=1
7 pkgdesc='The new bluetooth stack for KDE, it’s composed of: KCM, KDED, KIO, Library and some other small applications'
8 arch=('i686' 'x86_64')
9 url="http://gitweb.kde.org/bluedevil.git"
10 license=('GPL')
11 depends=('kdebase-workspace' 'libbluedevil' 'obex-data-server' 'obexd-client')
12 makedepends=('cmake' 'automoc4' 'git')
13 provides=(bluedevil)
14 conflicts=(bluedevil)
15 source=()
16 md5sums=()
18 _gitroot="git://anongit.kde.org/bluedevil.git"
19 _gitname="bluedevil"
21 build(){
22     cd "$srcdir"
23     msg "Connecting to GIT server...."
25     if [ -d $_gitname ] ; then
26         cd $_gitname
28         # Change remote url to anongit
29         if [ -z "$(git remote -v | grep anongit)" ] ; then
30             git remote set-url origin ${_gitroot}
31         fi
33         git pull origin
34         msg "The local files are updated."
35     else
36         git clone $_gitroot $_gitname
37     fi
39     msg "GIT checkout done or server timeout"
40     msg "Starting make..."
42     mkdir -p "$srcdir/build"
43     cd "$srcdir/build"
45     cmake ../${_gitname} \
46         -DCMAKE_BUILD_TYPE=Release \
47         -DCMAKE_SKIP_RPATH=ON \
48         -DCMAKE_INSTALL_PREFIX=/usr
49     make
52 package() {
53     cd "${srcdir}/build"
54     make DESTDIR=${pkgdir} install