blob: fcc09d802798bfea09c31a830cdbf6f650ead003 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor : Alessandro Sagratini <ale_sagra@hotmail.com>
pkgname=nvidia-71xx
pkgver=71.86.13
_kernver='2.6.28-LinHES'
pkgrel=1
pkgdesc="NVIDIA legacy drivers for kernel26-ice, 71xx branch"
arch=(i686 x86_64)
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('nvidia-71xx-utils' 'kernel26' 'vdpauinfo-legacy')
conflicts=('nvidia' 'nvidia-96xx')
license=('custom')
source=(http://us.download.nvidia.com/XFree86/Linux-${ARCH}/${pkgver}/NVIDIA-Linux-${ARCH}-${pkgver}-pkg0.run
NVIDIA_kernel-96.43.05-2290218.diff.txt)
install="nvidia-71xx.install"
build() {
cd $startdir/src
# Extract
cd $startdir/src/
sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg0.run --extract-only
cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg0
# Any extra patches are applied in here...
# patch -Np0 -i ../NVIDIA_kernel-96.43.05-2290218.diff.txt || return 1
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/$_kernver/build module
# install kernel module
mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
md5sums=('e058328595aaad8558a58067d9580bb6'
'a238b659c665036d1281ab0f3c567d8e')
|