1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Thomas Baechler <thomas@archlinux.org>
8 pkgdesc="NVIDIA drivers for linux"
10 url="https://www.nvidia.com/"
11 makedepends=('linux-headers' "nvidia-dkms=$pkgver")
12 provides=('NVIDIA-MODULE')
17 _kernver=$(</usr/src/linux/version)
19 fakeroot dkms build --dkmstree "${srcdir}" -m nvidia/${pkgver} -k ${_kernver}
23 depends=('linux' "nvidia-utils=${pkgver}" 'libglvnd')
25 _kernver="$(</usr/src/linux/version)"
27 install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 nvidia/${pkgver}/${_kernver}/${CARCH}/module/*
29 # compress each module individually
30 find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
32 install -Dm644 /usr/share/licenses/nvidia-dkms/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"