updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / dbus-sharp-glib-git / PKGBUILD
blobce92047d788179a4d569ba0ce14465e200ca4b0f
1 # Maintainer: oke3 < Sekereg [at] gmx [dot] com >
3 pkgname=dbus-sharp-glib-git
4 pkgver=20120111
5 pkgrel=1
6 pkgdesc="C# GLib implementation of D-Bus"
7 url="http://github.com/mono/dbus-sharp-glib"
8 arch=('any')
9 license=('custom')
10 depends=('dbus-sharp-git')
11 makedepends=('git')
12 options=('!makeflags')
13 conflicts=('dbus-sharp-glib')
14 provides=('dbus-sharp-glib')
16 _gitroot="git://github.com/mono/dbus-sharp-glib.git"
17 _gitname="dbus-sharp-glib"
19 build() {
20     cd "$srcdir"
22     msg "Connecting to GIT server...."
24     if [[ -d "$_gitname" ]]; then
25         cd "$_gitname" && git pull origin && cd "$srcdir"
26     else
27         git clone "$_gitroot" "$_gitname"
28     fi
30     msg "GIT checkout done or server timeout"
31     msg "Starting build..."
33     rm -rf "$_gitname-build"
34     git clone "$_gitname" "$_gitname-build"
35     cd "$_gitname-build"
37     ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
39     make
42 package() {
43     cd "$srcdir/$_gitname-build"
45     make DESTDIR="$pkgdir" install
46     install -D COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"