updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / gudev-sharp-git / PKGBUILD
blob631bcebbf7d63491e7361ed8dfefe7334c126965
1 # Maintainer: oke3 < Sekereg [at] gmx [dot] com >
2 # Contributor: neuromante <lorenzo.nizzi.grifi@gmail.com>
4 pkgname=gudev-sharp-git
5 pkgver=20120109
6 pkgrel=1
7 pkgdesc="Gudev mono bindings"
8 arch=('any')
9 url="http://github.com/mono/gudev-sharp"
10 license=('LGPL')
11 depends=('gtk-sharp-2')
12 makedepends=('git')
13 provides=('gudev-sharp')
14 conflicts=('gudev-sharp')
15 options=('!makeflags')
17 _gitroot="git://github.com/mono/gudev-sharp.git"
18 _gitname="gudev-sharp"
20 build() {
21     cd "$srcdir"
22     msg "Connecting to GIT server...."
24     if [[ -d "$_gitname" ]]; then
25         cd "$_gitname" && git pull origin
26         msg "The local files are updated."
27     else
28         git clone "$_gitroot" "$_gitname"
29     fi
31     msg "GIT checkout done or server timeout"
32     msg "Starting make..."
34     rm -rf "$srcdir/$_gitname-build"
35     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36     cd "$srcdir/$_gitname-build"
38     ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
40     make
43 package() {
44     cd "$srcdir/$_gitname-build"
46     make DESTDIR="$pkgdir" install