# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=xf86-video-modesetting pkgver=0.9.0 pkgrel=0 pkgdesc="X.org generic modesetting video drive" url="http://cgit.freedesktop.org/xorg/driver/xf86-video-modesetting/" arch="all" license="custom" depends="" depends_dev="xorg-server-dev udev-dev libdrm-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-modesetting-$pkgver.tar.bz2" _builddir="$srcdir"/xf86-video-modesetting-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1 } md5sums="da588d4f54111c2deae035998058ce10 xf86-video-modesetting-0.9.0.tar.bz2" sha256sums="90cf085573203dfadd48ea69bd694c4d04ccbe088b6855e9c85c34bb8a95d75c xf86-video-modesetting-0.9.0.tar.bz2" sha512sums="0e581deb3f09e932475c1ebf1e5a69239f6e0ac4d37bcc25ee9bc30083c1285c4a5645df960c7bd7103584512eff4149463195a985f469bd24f52059fd487cec xf86-video-modesetting-0.9.0.tar.bz2"