# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=xf86-video-fbdev
pkgver=0.5.0
pkgrel=0
pkgdesc="Framebuffer video driver for X11"
url="https://www.X.Org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
depends=""
makedepends="libxi-dev util-macros xorgproto-dev xorg-server-dev"
source="https://www.X.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$builddir"
	export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
sha512sums="c1217b943bbe3301b3c2a8649ed1004c3c67b02607bd56bbc14f6dfa05e7f0184332c81a6a19595514745501ed88526aee932e555779b7c3a8233646b0979448  xf86-video-fbdev-0.5.0.tar.bz2"