Advertisement
Guest User

Untitled

a guest
Jun 14th, 2019
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. # Based on the file created for Arch Linux by:
  2. # Maintainer : Thomas Baechler <thomas@archlinux.org>
  3.  
  4. # Maintainer: Philip Muller <philm@manjaro.org>
  5.  
  6. _linuxprefix=linux-lqx
  7. _extramodules=extramodules-lqx
  8. _kver=51
  9. _prevkver=50
  10. pkgname=nvidia-390xx-$_linuxprefix-$_kver
  11. _pkgname=nvidia
  12. pkgver=390.116
  13. _pkgver=390.116
  14. pkgrel=8.1
  15. epoch=1
  16. provides=("$_pkgname=$_pkgver")
  17. groups=("$_linuxprefix-extramodules")
  18. pkgdesc="NVIDIA drivers for linux."
  19. arch=('i686' 'x86_64')
  20. url="http://www.nvidia.com/"
  21. depends=("$_linuxprefix" "nvidia-390xx-utils=${_pkgver}")
  22. makedepends=("$_linuxprefix-headers")
  23. conflicts=('nvidia-96xx' 'nvidia-183xx' 'nvidia-340xx-lqx' 'nvidia-304xx-lqx' 'nvidia-lqx' "nvidia-390xx-$_linuxprefix-$_prevkver" "nvidia-390xx-$_linuxprefix")
  24. license=('custom')
  25. install=nvidia-lqx.install
  26. options=(!strip)
  27. durl="http://us.download.nvidia.com/XFree86/Linux-x86"
  28. source_i686=("${durl}/${_pkgver}/NVIDIA-Linux-x86-${_pkgver}.run")
  29. source_x86_64=("${durl}_64/${_pkgver}/NVIDIA-Linux-x86_64-${_pkgver}-no-compat32.run")
  30. sha256sums_i686=('13133f07e8c733eeca9f78decbcd17754f37f84b9038c8b235f9e89b52fc5b29')
  31. sha256sums_x86_64=('de85a2eea39ca16e25645b345259b01fbe858b833286b7e6785afa273009ef6f')
  32.  
  33. [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${_pkgver}"
  34. [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${_pkgver}-no-compat32"
  35.  
  36. prepare() {
  37. sh "${_pkg}.run" --extract-only
  38. cd "${_pkg}"
  39. # patches here
  40. }
  41.  
  42. build() {
  43. _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
  44. cd "${_pkg}"/kernel
  45. make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
  46. }
  47.  
  48. package() {
  49. install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
  50. "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia.ko"
  51. install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-modeset.ko" \
  52. "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-modeset.ko"
  53. install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-drm.ko" \
  54. "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-drm.ko"
  55. if [[ "$CARCH" = "x86_64" ]]; then
  56. install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia-uvm.ko" \
  57. "${pkgdir}/usr/lib/modules/${_extramodules}/nvidia-uvm.ko"
  58. fi
  59. gzip "${pkgdir}/usr/lib/modules/${_extramodules}/"*.ko
  60. sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia-lqx.install"
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement