[arch-commits] Commit in nvidia/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:43 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:42
Author: heftig
Revision: 364649
435.21-12: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
nvidia/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:19:41 UTC (rev 364648)
+++ PKGBUILD 2019-10-11 19:19:42 UTC (rev 364649)
@@ -5,8 +5,7 @@
pkgbase=nvidia
pkgname=(nvidia nvidia-dkms)
pkgver=435.21
-_extramodules=extramodules-ARCH
-pkgrel=11
+pkgrel=12
pkgdesc="NVIDIA drivers for linux"
arch=('x86_64')
url="http://www.nvidia.com/"
@@ -45,9 +44,8 @@
}
build() {
- _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
cd "${_pkg}"/kernel
- make SYSSRC=/usr/lib/modules/"${_kernver}/build" module
+ make SYSSRC=/usr/src/linux module
}
package_nvidia() {
@@ -54,7 +52,8 @@
pkgdesc="NVIDIA drivers for linux"
depends=('linux' "nvidia-utils=${pkgver}" 'libglvnd')
- install -Dt "${pkgdir}/usr/lib/modules/${_extramodules}" -m644 \
+ _extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules"
+ install -Dt "${pkgdir}${_extradir}" -m644 \
"${srcdir}/${_pkg}/kernel"/nvidia{,-modeset,-drm,-uvm}.ko
find "${pkgdir}" -name '*.ko' -exec gzip -n {} +
More information about the arch-commits
mailing list