This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 10th, 2011  |  syntax: None  |  size: 1.50 KB  |  views: 54  |  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. pkgname=nvidia-beta-ck
  2. pkgver=290.06
  3. _extramodules=extramodules-3.1-ck
  4. _kernver="$(cat /lib/modules/${_extramodules}/version)"
  5. pkgrel=2
  6. _pkgdesc="Beta nVidia drivers for linux-ck."
  7. arch=('i686' 'x86_64')
  8. url="http://www.nvidia.com/"
  9. depends=('linux-ck>=3.1' 'linux-ck<3.2' "nvidia-utils=${pkgver}")
  10. makedepends=('linux-ck-headers>=3.1' 'linux-ck-headers<3.2')
  11. conflicts=('nvidia-96xx-all' 'nvidia-173xx-all' 'nvidia-ck-stable' 'nvidia-ck')
  12. license=('custom')
  13. options=(!strip)
  14. install=$pkgname.install
  15.  
  16. if [ "$CARCH" = "i686" ]; then
  17.         _arch='x86'
  18.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
  19.         source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  20.         md5sums=('e7d718a8f2bbfdd1a479e2e01db84240')
  21. elif [ "$CARCH" = "x86_64" ]; then
  22.         _arch='x86_64'
  23.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
  24.         source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  25.         md5sums=('742bc411b475f9dab68ffd1688fd3316')
  26. fi
  27.  
  28. build() {
  29.         cd "${srcdir}"
  30.         sh ${_pkg}.run --extract-only
  31.         cd ${_pkg}/kernel
  32.         make SYSSRC=/lib/modules/"${_kernver}/build" module
  33. }
  34.  
  35. package() {
  36.         install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
  37.                 "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
  38.         install -d -m755 "${pkgdir}/etc/modprobe.d"
  39.         echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist_ck.conf"
  40.         sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia-ck.install"
  41.         gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
  42. }
  43.  
clone this paste RAW Paste Data