[arch-commits] Commit in nvidia-390xx/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Oct 11 19:19:41 UTC 2019
Date: Friday, October 11, 2019 @ 19:19:41
Author: heftig
Revision: 364648
390.129-12: kernel 5.3.6.arch1-1; removal of extramodules-ARCH
Modified:
nvidia-390xx/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-11 19:17:40 UTC (rev 364647)
+++ PKGBUILD 2019-10-11 19:19:41 UTC (rev 364648)
@@ -5,8 +5,7 @@
pkgbase=nvidia-390xx
pkgname=(nvidia-390xx nvidia-390xx-dkms)
pkgver=390.129
-_extramodules=extramodules-ARCH
-pkgrel=11
+pkgrel=12
pkgdesc="NVIDIA drivers for linux, 390xx legacy branch"
arch=('x86_64')
url="http://www.nvidia.com/"
@@ -47,9 +46,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-390xx() {
@@ -56,7 +54,8 @@
pkgdesc="NVIDIA drivers for linux, 390xx legacy branch"
depends=('linux' "nvidia-390xx-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