updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / nvidia-ck-256 / PKGBUILD
blob54e1b8d17975518856125e8e3f4c774036e48421
1 # Syco <SycoLTH at gmail dot com>
3 pkgname=nvidia-ck-256
4 pkgver=256.53
5 _kernver='2.6.36-ck'
6 pkgrel=3
7 pkgdesc="NVIDIA drivers for kernel26-ck."
8 arch=('i686' 'x86_64')
9 url="http://www.nvidia.com/"
10 depends=('kernel26-ck>=2.6.36' 'kernel26-ck<2.6.37' "nvidia-utils=${pkgver}")
11 makedepends=('kernel26-ck-headers>=2.6.36' 'kernel26-ck-headers<2.6.37')
12 conflicts=('nvidia-96xx-all' 'nvidia-173xx-all' 'nvidia-ck-stable' 'nvidia-beta-ck')
13 provides=("nvidia=${pkgver}")
14 license=('custom')
15 install=nvidia.install
17 if [ "$CARCH" = "i686" ]; then
18     _arch='x86'
19     _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
20     source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run" "patch_2.6.36.patch")
21     md5sums=('2ec917f51e752802646920e9bcd747e7' '291a1b8b954d5b2129102dc23d89c139')
22 elif [ "$CARCH" = "x86_64" ]; then
23     _arch='x86_64'
24     _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
25     source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run" "patch_2.6.36.patch")
26     md5sums=('73f08a19e00d05165cbbfc74e2fa4bdd' '291a1b8b954d5b2129102dc23d89c139')
29 build() {
30     cd $srcdir
31     sh ${_pkg}.run --extract-only
32     cd ${_pkg}
33     patch -p0 < $srcdir/patch_2.6.36.patch
34     cd kernel
35     make SYSSRC=/lib/modules/${_kernver}/build module
38 package() {
39     install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
40         $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
41         install -d -m755 $pkgdir/etc/modprobe.d
42         echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
43     sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install