mirror of
https://github.com/archlinux-jerry/nvidia-340xx
synced 2024-11-24 00:20:40 +08:00
add NVIDIA_340XX_DKMS_ONLY option
This commit is contained in:
parent
2222ca11f9
commit
06fbf9d626
2 changed files with 4 additions and 4 deletions
3
.SRCINFO
3
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = nvidia-340xx
|
pkgbase = nvidia-340xx
|
||||||
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
|
pkgdesc = NVIDIA drivers for linux, 340xx legacy branch
|
||||||
pkgver = 340.108
|
pkgver = 340.108
|
||||||
pkgrel = 19
|
pkgrel = 20
|
||||||
url = https://www.nvidia.com/
|
url = https://www.nvidia.com/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = custom
|
license = custom
|
||||||
|
@ -42,4 +42,3 @@ pkgname = nvidia-340xx-dkms
|
||||||
provides = nvidia-340xx=340.108
|
provides = nvidia-340xx=340.108
|
||||||
conflicts = nvidia
|
conflicts = nvidia
|
||||||
conflicts = nvidia-340xx
|
conflicts = nvidia-340xx
|
||||||
|
|
||||||
|
|
5
PKGBUILD
5
PKGBUILD
|
@ -4,9 +4,9 @@
|
||||||
# Contributor: Eric Bélanger <eric@archlinux.org>
|
# Contributor: Eric Bélanger <eric@archlinux.org>
|
||||||
|
|
||||||
pkgbase=nvidia-340xx
|
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
|
pkgver=340.108
|
||||||
pkgrel=19
|
pkgrel=20
|
||||||
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
|
pkgdesc="NVIDIA drivers for linux, 340xx legacy branch"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://www.nvidia.com/"
|
url="https://www.nvidia.com/"
|
||||||
|
@ -55,6 +55,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
[ -n "$NVIDIA_340XX_DKMS_ONLY" ] && return 0
|
||||||
cd "${_pkg}/kernel"
|
cd "${_pkg}/kernel"
|
||||||
make SYSSRC="/usr/src/$_kernelname" module
|
make SYSSRC="/usr/src/$_kernelname" module
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue