# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xf86-video-omap
pkgver=0.4.5
pkgrel=0
pkgdesc="X.Org driver for OMAP video processors"
url="https://www.X.Org/"
# Only for ARM.
arch="aarch64 aarch64_be arm armel armhf armv7"
license="X11"
depends=""
makedepends="libdrm-dev util-macros xorg-server-dev xorgproto-dev"
subpackages="$pkgname-doc"
source="https://www.X.Org/releases/individual/driver/xf86-video-omap-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c8a21bf00d9ead73b5f66310f802d6071454132b69e20230d3b95635d8fb8351febf5c881640907eb36dd7aeec2d0823e45fb9955b1a9a32e3838ee717964ca2  xf86-video-omap-0.4.5.tar.bz2"