Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD

By: a guest on Sep 1st, 2010  |  syntax: None  |  size: 1.56 KB  |  views: 118  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer : Thomas Baechler <thomas@archlinux.org>
  2. # non-maintainer edits: changed kernel version to build for -ck
  3.  
  4. pkgname=nvidia-ck
  5. pkgver=256.53
  6. _kernver='2.6.35-ck'
  7. pkgrel=1
  8. pkgdesc="NVIDIA drivers for kernel26-ck."
  9. arch=('i686' 'x86_64')
  10. url="http://www.nvidia.com/"
  11. depends=('kernel26-ck>=2.6.35' 'kernel26-ck<2.6.36' "nvidia-utils=${pkgver}")
  12. makedepends=('kernel26-ck-headers>=2.6.35' 'kernel26-ck-headers<2.6.36')
  13. conflicts=('nvidia-96xx' 'nvidia-173xx')
  14. license=('custom')
  15. install=nvidia-ck.install
  16.  
  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")
  21.         md5sums=('21fe3fe0afed7818b7adf383477b2155')
  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")
  26.         md5sums=('73f08a19e00d05165cbbfc74e2fa4bdd')
  27. fi
  28.  
  29. build() {
  30.         cd $srcdir
  31.         sh ${_pkg}.run --extract-only
  32.         cd ${_pkg}/kernel
  33.         make SYSSRC=/lib/modules/${_kernver}/build module
  34. }
  35.  
  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.conf
  41. #       sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
  42. }
clone this paste RAW Paste Data