updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / nvidia-xen / PKGBUILD
blob1833fa880b124f01b7d96a5c39a20a95408edf58
1 pkgname=nvidia-xen
2 pkgver=195.36.31
3 _kernver=`uname -r`
4 pkgrel=1
5 pkgdesc="NVIDIA drivers for kernel26."
6 arch=('i686' 'x86_64')
7 [ "$CARCH" = "i686"   ] && ARCH=x86
8 [ "$CARCH" = "x86_64" ] && ARCH=x86_64
9 url="http://www.nvidia.com/"
10 depends=('kernel26' "nvidia-utils=${pkgver}")
11 makedepends=('kernel26-headers')
12 conflicts=('nvidia-96xx' 'nvidia-173xx')
13 license=('custom')
14 install=nvidia.install
15 source=("http://download.nvidia.com/XFree86/Linux-$ARCH/$pkgver/NVIDIA-Linux-$ARCH-$pkgver-pkg0.run")
16 md5sums=('c30af5d776e3c71c6dd8e06c30e4bf1f')
17 [ "$CARCH" = "x86_64" ] && md5sums=('91cd7502cb6ca3a5c0e79e33ae79881f')
18 build() {
19         cd $srcdir
20         sh NVIDIA-Linux-$ARCH-$pkgver-pkg0.run --extract-only
21         cd NVIDIA-Linux-$ARCH-$pkgver-pkg0
23         cd usr/src/nv/
24         IGNORE_XEN_PRESENCE=y make SYSSRC=/lib/modules/$_kernver/build module || return 1
26         mkdir -p $pkgdir/lib/modules/$_kernver/kernel/drivers/video/
27         install -m644 nvidia.ko $pkgdir/lib/modules/$_kernver/kernel/drivers/video/
29         sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='$_kernver'/" $startdir/nvidia.install