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

Sven-Hendrik Haase svenstaro at nymeria.archlinux.org
Wed Mar 5 02:20:03 UTC 2014


    Date: Wednesday, March 5, 2014 @ 03:20:03
  Author: svenstaro
Revision: 206687

upgpkg: nvidia-lts 334.21-2

Fix FS#39167 and FS#39141

Modified:
  nvidia-lts/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-05 02:12:05 UTC (rev 206686)
+++ PKGBUILD	2014-03-05 02:20:03 UTC (rev 206687)
@@ -4,7 +4,7 @@
 pkgname=nvidia-lts
 pkgver=334.21
 _extramodules=extramodules-3.10-lts
-pkgrel=1
+pkgrel=2
 pkgdesc="NVIDIA drivers for linux-lts"
 arch=('i686' 'x86_64')
 url="http://www.nvidia.com/"
@@ -22,17 +22,25 @@
 [[ "$CARCH" = "i686" ]] && _pkg="NVIDIA-Linux-x86-${pkgver}"
 [[ "$CARCH" = "x86_64" ]] && _pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
 
+prepare() {
+    sh ${_pkg}.run --extract-only
+}
+
 build() {
   _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
-  sh ${_pkg}.run --extract-only
   cd "${_pkg}/kernel"
   make SYSSRC=/usr/lib/modules/${_kernver}/build module
+
+  cd uvm
+  make SYSSRC=/usr/lib/modules/${_kernver}/build module
 }
 
 package() {
   install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
     "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
-  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia.ko"
+  install -D -m644 "${srcdir}/${_pkg}/kernel/uvm/nvidia-uvm.ko" \
+    "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/nvidia-uvm.ko"
+  gzip "${pkgdir}/usr/lib/modules/${_extramodules}/kernel/drivers/video/"*.ko
   install -d -m755 "${pkgdir}/usr/lib/modprobe.d"
   echo "blacklist nouveau" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"
   echo "blacklist nvidiafb" >> "${pkgdir}/usr/lib/modprobe.d/nvidia-lts.conf"




More information about the arch-commits mailing list