[arch-commits] Commit in nvidia/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Tue Nov 16 07:05:25 UTC 2021


    Date: Tuesday, November 16, 2021 @ 07:05:24
  Author: svenstaro
Revision: 428552

upgpkg: nvidia 495.44-8: Try to fix FS#72306

Borrowed from tkg, thanks

Modified:
  nvidia/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-16 06:53:24 UTC (rev 428551)
+++ PKGBUILD	2021-11-16 07:05:24 UTC (rev 428552)
@@ -4,7 +4,7 @@
 
 pkgname=nvidia
 pkgver=495.44
-pkgrel=7
+pkgrel=8
 pkgdesc="NVIDIA drivers for linux"
 arch=('x86_64')
 url="https://www.nvidia.com/"
@@ -24,15 +24,13 @@
 
     _kernver="$(</usr/src/linux/version)"
 
-    install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 \
-        nvidia/${pkgver}/${_kernver}/${CARCH}/module/*
+    install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 nvidia/${pkgver}/${_kernver}/${CARCH}/module/*
 
     # compress each module individually
     find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
 
-    echo "blacklist nouveau" |
-        install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
+    echo "blacklist nouveau" | install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
+    echo "nvidia-uvm" | install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
 
-    install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 \
-        /usr/share/licenses/nvidia-dkms/LICENSE
+    install -Dm644 /usr/share/licenses/nvidia-dkms/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }



More information about the arch-commits mailing list