# Maintainer: Natanael Copa pkgname=xf86-video-nouveau #_gitdate=20111010 pkgver=1.0.7 pkgrel=0 pkgdesc="Open-source X.org drivers for nVidia video cards" url="http://nouveau.freedesktop.org/" arch="all" license="MIT" depends="" depends_dev= makedepends="pkgconfig randrproto renderproto videoproto xextproto libdrm-dev xorg-server-dev util-macros libtool autoconf automake xf86driproto udev-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 --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="383e398283e7bae30d6ce1617ccbd3a4 xf86-video-nouveau-1.0.7.tar.bz2" sha256sums="d187c658e1823ca829c941f3f601f8e7220d427e079c3e52b94ecff45bc2e131 xf86-video-nouveau-1.0.7.tar.bz2" sha512sums="83367a7345f2ad2b1913e9bbd2af775a9821a099f7a062c825070f710f264c384d49e7c1e2011ec8cf65c5ac599f33cdbb06efabc19fae244c116835bbd0c3cd xf86-video-nouveau-1.0.7.tar.bz2"