1 # Contributor: Meowdib <meowdib at gmail dot com>
2 # Maintainer: Doug <doug.quaid@gmail.com>
8 pkgdesc="NVIDIA drivers for linux-lqx."
10 url="http://www.nvidia.com/"
11 depends=("linux-lqx>=3.2" "linux-lqx<3.3" "nvidia-utils=${pkgver}")
14 install=nvidia-lqx.install
17 if [ "$CARCH" = "i686" ]; then
19 _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
20 source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
21 md5sums=('50319a4b3818c12c9c7243525e0e6316')
22 elif [ "$CARCH" = "x86_64" ]; then
24 _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
25 source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
26 md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
31 sh ${_pkg}.run --extract-only
33 make SYSSRC=/lib/modules/${_kernver}/build module
37 install -D -m644 "$srcdir"/$_pkg/kernel/nvidia.ko \
38 "$pkgdir"/lib/modules/$_kernver/kernel/drivers/video/nvidia.ko
39 install -d -m755 "$pkgdir"/etc/modprobe.d
40 echo "blacklist nouveau" >> "$pkgdir"/etc/modprobe.d/nouveau_blacklist_lqx.conf
41 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='$_kernver'/" "$startdir/nvidia-lqx.install"
42 gzip "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko"