530.41.03-10: linux 6.3.1.arch2-1
[arch-packages.git] / nvidia-lts / trunk / PKGBUILD
blob0d890026e6b54500fed91062ada3530e08a92200
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=nvidia-lts
4 pkgver=530.41.03
5 pkgrel=8
6 epoch=1
7 pkgdesc="NVIDIA drivers for linux-lts"
8 arch=('x86_64')
9 url="https://www.nvidia.com/"
10 makedepends=('linux-lts-headers' "nvidia-dkms=$pkgver")
11 provides=('NVIDIA-MODULE')
12 license=('custom')
13 options=('!strip')
15 build() {
16     _kernver=$(</usr/src/linux-lts/version)
18     fakeroot dkms build --dkmstree "${srcdir}" -m nvidia/${pkgver} -k ${_kernver}
21 package() {
22     depends=('linux-lts' "nvidia-utils=${pkgver}" 'libglvnd')
24     _kernver="$(</usr/src/linux-lts/version)"
26     install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 nvidia/${pkgver}/${_kernver}/${CARCH}/module/*
28     # compress each module individually
29     find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
31     install -Dm644 /usr/share/licenses/nvidia-dkms/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"