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

Tobias Powalowski tpowa at archlinux.org
Thu Mar 29 08:44:10 EDT 2012


    Date: Thursday, March 29, 2012 @ 08:44:10
  Author: tpowa
Revision: 154492

move kernver to build function

Modified:
  nvidia/trunk/PKGBUILD

----------+
 PKGBUILD |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-29 12:43:09 UTC (rev 154491)
+++ PKGBUILD	2012-03-29 12:44:10 UTC (rev 154492)
@@ -4,7 +4,6 @@
 pkgname=nvidia
 pkgver=295.33
 _extramodules=extramodules-3.3-ARCH
-_kernver="$(cat /lib/modules/${_extramodules}/version)"
 pkgrel=2
 pkgdesc="NVIDIA drivers for linux."
 arch=('i686' 'x86_64')
@@ -29,6 +28,7 @@
 fi
 
 build() {
+    _kernver="$(cat /lib/modules/${_extramodules}/version)"
     cd "${srcdir}"
     sh "${_pkg}.run" --extract-only
     cd "${_pkg}/kernel"



More information about the arch-commits mailing list