updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / nvidia-lqx / PKGBUILD
blobd5e9bef62944174c8d8fb0cb2ab87541c9d7ec75
1 # Contributor: Meowdib <meowdib at gmail dot com>
2 # Maintainer: Doug <doug.quaid@gmail.com>
4 pkgname=nvidia-lqx
5 pkgver=290.10
6 _kernver='3.2.0-lqx'
7 pkgrel=2
8 pkgdesc="NVIDIA drivers for linux-lqx."
9 arch=('i686' 'x86_64')
10 url="http://www.nvidia.com/"
11 depends=("linux-lqx>=3.2" "linux-lqx<3.3" "nvidia-utils=${pkgver}")
12 conflicts=()
13 license=('custom')
14 install=nvidia-lqx.install
15 options=(!strip)
17 if [ "$CARCH" = "i686" ]; then
18         _arch='x86'
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
23         _arch='x86_64'
24         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
25         source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
26         md5sums=('cebfba9a7e91716a06c66bb5b38d9661')
29 build() {
30     cd $srcdir
31     sh ${_pkg}.run --extract-only
32     cd ${_pkg}/kernel
33     make SYSSRC=/lib/modules/${_kernver}/build module
36 package() {
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"