# Maintainer (archarm): Kevin Mihelich <kevin@archlinuxarm.org>
# Maintainer (archarm): Mike Brown <mbrown@archlinuxarm.org>
# Maintainer: Isaac David <isacdaavid@at@isacdaavid@dot@info>
# OMAP FrameBuffer driver for Xorg

buildarch=4

pkgname="xf86-video-omap"
pkgver=0.4.4
pkgrel=5
arch=('armv7h')
url="http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/"
license=('GPL2')
makedepends=('pkgconfig' 'xorg-server-devel' 'resourceproto' 'scrnsaverproto')
options=('!libtool')
source=('http://cgit.freedesktop.org/xorg/driver/xf86-video-omap/snapshot/xf86-video-omap-0.4.4.tar.gz')
md5sums=('ce429327dc3d2ceba617e94d916c74bb')

build() {
  cd "${srcdir}/xf86-video-omap-${pkgver}"
  ./autogen.sh
  ./configure --prefix=/usr

  make
}

package() {
  pkgdesc="OMAP3+ framebuffer driver for X"

  cd "${srcdir}/xf86-video-omap-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
