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

nvidia-beta-fbcondecor

By: a guest on Oct 2nd, 2010  |  syntax: Bash  |  size: 1.56 KB  |  views: 83  |  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. # $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
  2. # Maintainer : Thomas Baechler <thomas@archlinux.org>
  3. # Adapted for fbcondecor by: Conrad Nelson
  4.  
  5. pkgname=nvidia-beta-fbcondecor
  6. pkgver=260.19.06
  7. _kernver='2.6.35-fbcondecor'
  8. pkgrel=3
  9. pkgdesc="NVIDIA drivers for kernel26 patched with fbcondecor."
  10. arch=('i686' 'x86_64')
  11. url="http://www.nvidia.com/"
  12. depends=('kernel26-fbcondecor' 'nvidia-utils-beta')
  13. makedepends=('kernel26-headers')
  14. conflicts=('nvidia-96xx' 'nvidia-173xx' 'nvidia-beta')
  15. license=('custom')
  16. install=nvidia-fbcondecor.install
  17.  
  18. if [ "$CARCH" = "i686" ]; then
  19.         _arch='x86'
  20.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
  21.         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  22.         md5sums=('21fe3fe0afed7818b7adf383477b2155')
  23. elif [ "$CARCH" = "x86_64" ]; then
  24.         _arch='x86_64'
  25.         _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
  26.         source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  27.         md5sums=('69f00bf3f8f381a6a870d9ad341e3a2e')
  28. fi
  29.  
  30. build() {
  31.         cd $srcdir
  32.         sh ${_pkg}.run --extract-only
  33.         cd ${_pkg}/kernel
  34.         make SYSSRC=/lib/modules/${_kernver}/build module
  35. }
  36.  
  37. package() {
  38.         install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
  39.                 $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
  40.         install -d -m755 $pkgdir/etc/modprobe.d
  41.         echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
  42.         sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia-fbcondecor.install
  43. }
clone this paste RAW Paste Data