1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
7 pkgdesc="NVIDIA drivers for linux-lts"
9 url="https://www.nvidia.com/"
10 makedepends=('linux-lts-headers' "nvidia-dkms=$pkgver")
11 provides=('NVIDIA-MODULE')
16 _kernver=$(</usr/src/linux-lts/version)
18 fakeroot dkms build --dkmstree "${srcdir}" -m nvidia/${pkgver} -k ${_kernver}
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"