1 # Contributor: Olivier Mehani <shtrom-aur@ssji.net
2 # $Id: PKGBUILD 283 2011-04-04 02:07:15Z shtrom $
3 pkgname=xorg-grandr-git
6 pkgdesc="GRandr provides a friendly interface to monitor configuration and includes controls for video mode, rotation and monitor position."
8 url="http://cgit.freedesktop.org/xorg/app/grandr"
10 depends=("gtk2>=2.0" "gconf>=2.0")
13 _gitroot="http://anongit.freedesktop.org/git/xorg/app/grandr.git"
18 msg "Connecting to GIT server...."
20 if [ -d $_gitname ] ; then
21 cd $_gitname && git pull origin
22 msg "The local files are updated."
24 git clone $_gitroot $_gitname
27 msg "GIT checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
39 ./configure --prefix=/usr
44 cd "$srcdir/$_gitname-build"
45 make DESTDIR="$pkgdir/" install