Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 18th, 2010  |  syntax: Bash  |  size: 1.22 KB  |  views: 88  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer : Dan Vratil <vratil@progdansoft.com>
  2.  
  3. pkgname=nvidia-beta
  4. pkgver=260.19.06
  5. pkgrel=1
  6. pkgdesc="NVIDIA beta drivers for kernel26."
  7. arch=('i686' 'x86_64')
  8. _kernver=`uname -r`
  9. ARCH=x86_64 && _srcname=NVIDIA-Linux-x86_64-${pkgver}-no-compat32 && md5sums=('69f00bf3f8f381a6a870d9ad341e3a2e')
  10. [ "$CARCH" = "i686" ] && ARCH=x86 && _srcname=NVIDIA-Linux-x86-${pkgver} && md5sums=('845154d89f9c56bbfcd9554213053bed')
  11. provides=("nvidia=${pkgver}")
  12. url="http://www.nvidia.com/"
  13. depends=('kernel26' "nvidia-utils-beta=${pkgver}")
  14. makedepends=('kernel26-headers')
  15. conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy' 'nvidia')
  16. license=('custom')
  17. install=nvidia.install
  18. source=("ftp://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/${_srcname}.run")
  19.  
  20. build() {
  21.   # Extract the nvidia drivers
  22.   cd "${srcdir}"
  23.   if [ -d ${_srcname} ]; then
  24.     rm -rf ${_srcname}
  25.   fi
  26.   sh ${_srcname}.run --extract-only
  27.   cd ${_srcname}/kernel
  28.   make SYSSRC=/usr/src/linux-${_kernver} module
  29. }
  30.  
  31. package() {
  32.   cd "${srcdir}/${_srcname}/kernel"
  33.  
  34.   # Install kernel module
  35.   mkdir -p "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/"
  36.   install -m644 nvidia.ko "${pkgdir}/lib/modules/${_kernver}/kernel/drivers/video/"
  37. }