This commit is contained in:
JerryXiao 2022-01-14 11:14:21 +08:00
parent 28bf9c69eb
commit 43b07c751c
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5
2 changed files with 21 additions and 6 deletions

View file

@ -1,13 +1,13 @@
pkgbase = nvidia-340xx-lts
pkgdesc = NVIDIA drivers for linux-lts, 340xx legacy branch
pkgver = 340.108
pkgrel = 4
pkgrel = 5
url = https://www.nvidia.com/
arch = x86_64
license = custom
makedepends = nvidia-340xx-utils=340.108
makedepends = linux-lts>=5.10.16
makedepends = linux-lts-headers>=5.10.16
makedepends = linux-lts>=5.15.14
makedepends = linux-lts-headers>=5.15.14
conflicts = nvidia-lts
options = !strip
source = https://us.download.nvidia.com/XFree86/Linux-x86_64/340.108/NVIDIA-Linux-x86_64-340.108-no-compat32.run
@ -17,6 +17,9 @@ pkgbase = nvidia-340xx-lts
source = 0002-kernel-5.8.patch
source = 0003-kernel-5.9.patch
source = 0004-kernel-5.10.patch
source = 0005-kernel-5.11.patch
source = 0006-kernel-5.14.patch
source = 0007-kernel-5.15.patch
sha256sums = 995d44fef587ff5284497a47a95d71adbee0c13020d615e940ac928f180f5b77
sha256sums = 5b4cb7620abc1729a13c78a2fb33ccaeb7d92f42936d929885324c81f2b7c985
sha256sums = 82d14e9e6ec47c345d225d9f398238b7254cd5ae581c70e8521b9157ec747890
@ -24,6 +27,9 @@ pkgbase = nvidia-340xx-lts
sha256sums = 10b91c8dbc269ff1d8e3e8a1866926c309ff3912d191a05cd5724a3139776f32
sha256sums = e06af37ffa2203698594e0f58816b809feced9b2374927e13b85fd5c18fa3114
sha256sums = 5e184ca5fcbf5071050f23503bfd3391c4bc1ccc31453338791a3da3885b6085
sha256sums = 2430303d6a0f48418532229aa5377e8848be762a8fdc790edeba30e6eec5214c
sha256sums = 47ca88252c6b40f488f403f81c3eb1c1e5a5eed1dc353e31d53b5c815c433238
sha256sums = ff4869ea16eb3d894b13a6ca6775906ce0feacf405a2ade63c4f052df6024769
pkgname = nvidia-340xx-lts
pkgdesc = NVIDIA drivers for linux-lts, 340xx legacy branch.

View file

@ -6,11 +6,11 @@
pkgbase=nvidia-340xx-lts
pkgname=(nvidia-340xx-lts nvidia-340xx-lts-dkms)
pkgver=340.108
pkgrel=4
pkgrel=5
pkgdesc="NVIDIA drivers for linux-lts, 340xx legacy branch"
arch=('x86_64')
url="https://www.nvidia.com/"
makedepends=("nvidia-340xx-utils=${pkgver}" 'linux-lts>=5.10.16' 'linux-lts-headers>=5.10.16')
makedepends=("nvidia-340xx-utils=${pkgver}" 'linux-lts>=5.15.14' 'linux-lts-headers>=5.15.14')
conflicts=('nvidia-lts')
license=('custom')
options=(!strip)
@ -23,6 +23,9 @@ source=("https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Li
0002-kernel-5.8.patch
0003-kernel-5.9.patch
0004-kernel-5.10.patch
0005-kernel-5.11.patch
0006-kernel-5.14.patch
0007-kernel-5.15.patch
)
sha256sums=('995d44fef587ff5284497a47a95d71adbee0c13020d615e940ac928f180f5b77'
'5b4cb7620abc1729a13c78a2fb33ccaeb7d92f42936d929885324c81f2b7c985'
@ -30,7 +33,10 @@ sha256sums=('995d44fef587ff5284497a47a95d71adbee0c13020d615e940ac928f180f5b77'
'c8bda5fb238fbebc5bf6ae4b7646e48b30a96b9060ced20d93c53c14ac3161f6'
'10b91c8dbc269ff1d8e3e8a1866926c309ff3912d191a05cd5724a3139776f32'
'e06af37ffa2203698594e0f58816b809feced9b2374927e13b85fd5c18fa3114'
'5e184ca5fcbf5071050f23503bfd3391c4bc1ccc31453338791a3da3885b6085')
'5e184ca5fcbf5071050f23503bfd3391c4bc1ccc31453338791a3da3885b6085'
'2430303d6a0f48418532229aa5377e8848be762a8fdc790edeba30e6eec5214c'
'47ca88252c6b40f488f403f81c3eb1c1e5a5eed1dc353e31d53b5c815c433238'
'ff4869ea16eb3d894b13a6ca6775906ce0feacf405a2ade63c4f052df6024769')
_pkg="NVIDIA-Linux-x86_64-${pkgver}-no-compat32"
# default is 'linux' substitute custom name here
@ -46,6 +52,9 @@ prepare() {
patch -Np1 -i ../0002-kernel-5.8.patch
patch -Np1 -i ../0003-kernel-5.9.patch
patch -Np1 -i ../0004-kernel-5.10.patch
patch -Np1 -i ../0005-kernel-5.11.patch
patch -Np1 -i ../0006-kernel-5.14.patch
patch -Np1 -i ../0007-kernel-5.15.patch
cp -a kernel kernel-dkms
}