I made a patch that builds successfully for those interested to go ahead with it. Reverted to nvidia
until @Det merges it, if it's okay.
diff --git a/PKGBUILD b/PKGBUILD
index 1f5045a..fe9c4c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,6 +15,7 @@ provides=("nvidia=$pkgver")
conflicts=('nvidia-96xx' 'nvidia-173xx' 'nvidia')
options=('!strip')
install=$pkgname.install
+_extramodules=extramodules-ARCH
_pkg="NVIDIA-Linux-x86_64-$pkgver-no-compat32"
source=("http://us.download.nvidia.com/XFree86/Linux-x86_64/$pkgver/$_pkg.run")
md5sums=('d3556202869f629e0c251b59ad4b9bee')
@@ -42,7 +43,7 @@ prepare() {
cd $_pkg
# Kernel version (e.g. 4.15.0-1-ARCH)
- _kernel=$(cat /usr/lib/modules/extramodules-*-ARCH/version)
+ _kernel=$(cat /usr/lib/modules/$_extramodules/version)
# Loop patches (linux-4.15.patch, lol.patch, ...)
for _p in $(printf -- '%s\n' ${source[@]} | grep .patch); do # https://stackoverflow.com/a/21058239/1821548
@@ -61,7 +62,7 @@ prepare() {
build() {
# Version of 'linux'
- _kernel=$(cat /usr/lib/modules/extramodules-*-ARCH/version)
+ _kernel=$(cat /usr/lib/modules/$_extramodules/version)
# Build module
cd $_pkg/kernel
@@ -70,10 +71,6 @@ build() {
}
package() {
- # Version of 'linux'
- _major=$(pacman -Q linux | grep -Po "\d+\.\d+")
- _extramodules=extramodules-$_major-ARCH
-
# Nvidia kernel module; provides low-level access to your NVIDIA hardware for the other components. Generally
# loaded into the kernel when the X server is started, to be used by the X driver and OpenGL. Consists of two
# pieces: the binary-only core, and a kernel interface that must be compiled specifically for your kernel version,
diff --git a/nvidia-beta.install b/nvidia-beta.install
index ca51309..80c7263 100644
--- a/nvidia-beta.install
+++ b/nvidia-beta.install
@@ -1,6 +1,6 @@
_depmod() {
# This gets auto-updated during build
- _extramodules='extramodules-4.11-ARCH'
+ _extramodules='extramodules-ARCH'
# Update module dependencies
depmod $(cat /usr/lib/modules/$_extramodules/version)
Pinned Comments
dbermond commented on 2024-06-28 21:55 (UTC)
@Bohdanator you need to install both packages at the same time with 'pacman -U'.
Det commented on 2018-07-17 13:28 (UTC) (edited on 2018-07-17 13:36 (UTC) by Det)
✔ OBS
This is not a Vulkan package: https://developer.nvidia.com/vulkan-driver, https://devtalk.nvidia.com/default/topic/1035845