# Contributor: Andreas Baumann <abaumann@yahoo.com>

pkgname=xf86-video-ivtvfb
pkgver=1.0.1
pkgrel=1
pkgdesc="xorg framebuffer driver for IVTV video cards"
arch=('i686')
url="http://ivtvdriver.org"
license=('GPL')
source=(http://dl.ivtvdriver.org/xf86-video-ivtv/archive/1.0.x/xf86-video-ivtv-1.0.1.tar.gz
        xf86-video-ivtv-pagesize.patch
	)

md5sums=('c66a5cd5c12c3eab92751b310c1fd43e'
         'a32d2bf15f08bddebdbdd9b8534715c4')

build() {
  cd "$srcdir/xf86-video-ivtv-1.0.1"

  patch -Np1 -i "$srcdir/xf86-video-ivtv-pagesize.patch" || return 1

  ./configure --prefix=/usr

  make || return 1
  make DESTDIR=${pkgdir} install || return 1
}