# Contributor: # Maintainer: pkgname=xf86-video-nouveau _gitdate=20111010 pkgver=0.0.16_git20120512 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://dev.alpinelinux.org/~ncopa/xf86-video-nouveau-${_gitdate}.tar.bz2" _builddir="${srcdir}/${pkgname}-${_gitdate}" 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" ./autogen.sh --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="0e501faa9b8d153a208ff81d6cd69a4f xf86-video-nouveau-20111010.tar.bz2"