# $Id: PKGBUILD 15043 2008-10-12 12:14:52Z jgc $
#Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xf86-video-vga
pkgver=4.1.0
pkgrel=6
pkgdesc="X.org VGA 16 color video driver"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
depends=('glibc')
makedepends=('pkgconfig' 'xorg-server>=1.5.2')
conflicts=('xorg-server<1.5.2')
options=('!libtool')
source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2
	pciaccess.patch)
md5sums=('b93e5fe9757db779a75cd3ce97b9613d'
         'fe3a45179f51fb86215f6fd2b5ac0747')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np1 -i "${srcdir}/pciaccess.patch" || return 1
  libtoolize --force || return 1
  aclocal || return 1
  autoconf || return 1
  automake || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
}