updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gabriel-git / PKGBUILD
blob03b5300163ca0e9eecf20753c5408850d7844446
1 # Maintainer: Duong Pham <dthpham@gmail.com>
3 pkgname=gabriel-git
4 pkgver=20110704
5 pkgrel=1
6 pkgdesc="Provides remote D-Bus connections over SSH"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/projects/gabriel/"
9 license=('GPL2')
10 depends=('libssh>=0.2' 'glib2>2.10', 'socat>1.5', 'dbus')
11 makedepends=('git')
12 provides=('gabriel')
13 conflicts=('gabriel')
15 _gitroot=git://gabriel.git.sourceforge.net/gitroot/gabriel/gabriel 
16 _gitname=gabriel
17 _gitbranch=master
19 build() {
20   cd "$srcdir"
22   msg "Connecting to $_gitroot..."
23   if [[ -d $_gitname ]]; then
24     cd $_gitname && git pull origin && cd ..
25     msg2 "Local files updated"
26   else
27     git clone $_gitroot
28     msg2 "Git checkout done"
29   fi
31   rm -rf $_gitname-build
32   git clone $_gitname $_gitname-build
33   cd $_gitname-build
35   msg "Starting make..."
36   ./autogen.sh
37   ./configure --prefix=/usr --sysconfdir=/etc
39   make || return 1
42 package() {
43   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir" install