# $Id: PKGBUILD 22301 2008-12-25 18:28:12Z jgc $
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=xf86-video-unichrome
pkgver=0.2.7
pkgrel=0.1
_gitversion=1464eb9ecb178163af0e85443c3e591755c8c320
pkgdesc="Unichrome video drivers for X.Org"
arch=(i686 x86_64)
url="http://unichrome.sf.net/"
depends=('unichrome-dri>=7.2')
makedepends=('pkgconfig' 'xorg-server>=1.5.3' 'xorg-util-macros' 'xf86driproto' 'glproto' 'mesa>=7.2' 'autoconf' 'automake' 'libtool')
options=('!libtool')
conflicts=('xf86-video-via' 'openchrome' 'xf86-video-openchrome' 'xorg-server<1.5.3')
source=(http://cgit.freedesktop.org/~libv/${pkgname}/snapshot/${pkgname}-${_gitversion}.tar.bz2)
md5sums=('dfef1e3b9ed24d50938ea5ee6f708457')

build() {
  cd "${srcdir}/${pkgname}-${_gitversion}"
  ./autogen.sh --prefix=/usr \
               --enable-dri
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
}