updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / dbus-c++-gitorious / PKGBUILD
blobbf50c33187637bc6c884a9ad4b55b051707a6682
1 # Contributor: Will Chappell <mr.chapendi@gmail.com>
3 pkgname=dbus-c++-gitorious
4 pkgver=20091124
5 pkgrel=1
6 pkgdesc="dbus-c++ attempts to provide a C++ API for D-BUS.  Alternative, Gitorious-hosted fork."
7 url="http://freedesktop.org/wiki/Software/dbus-c++"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('dbus>=1.2.0' 'glib2')
11 makedepends=('git' 'autoconf' 'automake')
12 md5sums=()
13 options=('!libtool')
15 _gitroot="git://gitorious.org/dbus-cplusplus/mainline.git"
16 _gitname="mainline"
18 build() {
19     cd "$srcdir"
21     msg "Connecting to GIT server...."
23     if [ -d "$srcdir"/$_gitname ] ; then
24         cd $_gitname && git-pull origin
25         msg "The local files are updated."
26     else
27         git clone $_gitroot
28     fi
29     msg "GIT checkout done or server timeout"
30     msg "Starting make..."
32     cp -r "$srcdir"/$_gitname "$srcdir"/$_gitname-build
33     cd "$srcdir"/$_gitname-build
35     ./autogen.sh --prefix=/usr --disable-static --enable-glib
37     make || return 1
38     make DESTDIR="$pkgdir" install || return 1
40     rm -rf "$srcdir"/$_gitname-build