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

Update nvidia-fbcondecor PKGBUILD

By: a guest on Jun 17th, 2012  |  syntax: Bash  |  size: 1.85 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. # $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
  2. # Maintainer : wuyingren <keitaroh@gmail.com>
  3. # Contributor : Thomas Baechler <thomas@archlinux.org>
  4. # Adapted for fbcondecor by: Conrad Nelson
  5.  
  6. pkgname=nvidia-fbcondecor
  7. pkgver=302.17
  8. _extramodules=extramodules-3.3-fbcondecor
  9. pkgrel=1
  10. pkgdesc="NVIDIA drivers for linux kernel patched with fbcondecor."
  11. arch=('i686' 'x86_64')
  12. url="http://www.nvidia.com/"
  13. depends=('linux-fbcondecor>=3.3' 'linux-fbcondecor<3.4' "nvidia-utils=${pkgver}")
  14. makedepends=('linux-headers>=3.3' 'linux-headers<3.4')
  15. conflicts=('nvidia-96xx' 'nvidia-173xx')
  16. license=('custom')
  17. install=nvidia-fbcondecor.install
  18.  
  19.  
  20. if [ "$CARCH" = "i686" ]; then
  21.     _arch='x86'
  22.     _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
  23.     source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  24.     md5sums=('b7f908ea08218df08db06026215ec419')
  25. elif [ "$CARCH" = "x86_64" ]; then
  26.     _arch='x86_64'
  27.     _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
  28.     source=("http://us.download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
  29.     md5sums=('7e768412a16853078b04037a7cc9c8ac')
  30. fi
  31.  
  32. build() {
  33.         _kernver="$(cat /lib/modules/${_extramodules}/version)"
  34.         cd "${srcdir}"
  35.         sh "${_pkg}.run" --extract-only
  36.         cd "${_pkg}/kernel"
  37.         make SYSSRC=/lib/modules/"${_kernver}/build" module
  38. }
  39.  
  40. package() {
  41.         install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
  42.                 "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
  43.         install -d -m755 "${pkgdir}/lib/modprobe.d"
  44.         echo "blacklist nouveau" >> "${pkgdir}/lib/modprobe.d/nvidia.conf"
  45.         echo "blacklist nvidiafb" >> "${pkgdir}/lib/modprobe.d/nvidia.conf"
  46.         sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia-fbcondecor.install"
  47.         gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
  48. }
clone this paste RAW Paste Data