# Maintainer: Natanael Copa pkgname=xf86-video-nouveau #_gitdate=20111010 pkgver=1.0.11 pkgrel=3 pkgdesc="Open-source X.org drivers for nVidia video cards" url="http://nouveau.freedesktop.org/" arch="all" license="MIT" depends="mesa-dri-nouveau" depends_dev= makedepends="randrproto renderproto videoproto xextproto libdrm-dev xorg-server-dev util-macros libtool autoconf automake xf86driproto eudev-dev" install="" subpackages="$pkgname-doc" source="http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nouveau-$pkgver.tar.bz2" _builddir="$srcdir"/xf86-video-nouveau-$pkgver mksource() { mkdir /tmp/${pkgname}-${_gitdate} (cd /tmp/${pkgname}-${_gitdate}; git clone -v --depth 1 git://anongit.freedesktop.org/nouveau/xf86-video-nouveau; cd xf86-video-nouveau; git archive --prefix=xf86-video-nouveau-${_gitdate}/ --format=tar HEAD | bzip2 > /tmp/${pkgname}-${_gitdate}/${pkgname}-${_gitdate}.tar.bz2) } build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -Wl,-z,lazy" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/xorg/modules/*/*.la || return 1 } md5sums="a0d2932d84ba10c4933c8332c9afe157 xf86-video-nouveau-1.0.11.tar.bz2" sha256sums="f84fe2b2787f3ea9419eac3aa86462b929a551b3dbc4de550cc83b67f3216848 xf86-video-nouveau-1.0.11.tar.bz2" sha512sums="4ceffc711798b98a5ee67d9df33d1a4f1d2b7d100605ea04b2e689debf745bc5a4f8907b602d1689ec6ed6400b2fc0ffe0eb0f7e7787bd2dd3cd5db1d14e90ee xf86-video-nouveau-1.0.11.tar.bz2"