From 06fbf9d626d0e1731082e82ac1109bac079d534a Mon Sep 17 00:00:00 2001 From: Jerry Date: Sun, 6 Jun 2021 10:12:43 +0800 Subject: [PATCH] add NVIDIA_340XX_DKMS_ONLY option --- .SRCINFO | 3 +-- PKGBUILD | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index ddc1230..e8df771 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = nvidia-340xx pkgdesc = NVIDIA drivers for linux, 340xx legacy branch pkgver = 340.108 - pkgrel = 19 + pkgrel = 20 url = https://www.nvidia.com/ arch = x86_64 license = custom @@ -42,4 +42,3 @@ pkgname = nvidia-340xx-dkms provides = nvidia-340xx=340.108 conflicts = nvidia conflicts = nvidia-340xx - diff --git a/PKGBUILD b/PKGBUILD index b5d1160..face377 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,9 +4,9 @@ # Contributor: Eric BĂ©langer pkgbase=nvidia-340xx -pkgname=(nvidia-340xx nvidia-340xx-dkms) +pkgname=(nvidia-340xx nvidia-340xx-dkms); [ -n "$NVIDIA_340XX_DKMS_ONLY" ] && pkgname=(nvidia-340xx-dkms) pkgver=340.108 -pkgrel=19 +pkgrel=20 pkgdesc="NVIDIA drivers for linux, 340xx legacy branch" arch=('x86_64') url="https://www.nvidia.com/" @@ -55,6 +55,7 @@ prepare() { } build() { + [ -n "$NVIDIA_340XX_DKMS_ONLY" ] && return 0 cd "${_pkg}/kernel" make SYSSRC="/usr/src/$_kernelname" module