updated on Wed Jan 11 20:01:35 UTC 2012
[aur-mirror.git] / dbus-sharp-git / PKGBUILD
blobd8fd1ba87c4e3e79466396e0259e609f365db8ef
1 # Maintainer: oke3 < Sekereg [at] gmx [dot] com >
3 pkgname=dbus-sharp-git
4 pkgver=20120111
5 pkgrel=1
6 pkgdesc="C# implementation of D-Bus"
7 url="http://github.com/mono/dbus-sharp/"
8 arch=('any')
9 license=('custom')
10 depends=('mono')
11 makedepends=('git')
12 options=('!makeflags')
13 conflicts=('dbus-sharp')
14 provides=('dbus-sharp')
16 _gitroot="git://github.com/mono/dbus-sharp.git"
17 _gitname="dbus-sharp"
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"