OCaml 4.14.0 rebuild
[arch-packages.git] / nvidia / trunk / PKGBUILD
blobce9cd460eb31a4cf407d2b223d0d13d4a7594224
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Thomas Baechler <thomas@archlinux.org>
5 pkgname=nvidia
6 pkgver=515.65.01
7 pkgrel=3
8 pkgdesc="NVIDIA drivers for linux"
9 arch=('x86_64')
10 url="https://www.nvidia.com/"
11 makedepends=('linux-headers' "nvidia-dkms=$pkgver")
12 provides=('NVIDIA-MODULE')
13 license=('custom')
14 options=('!strip')
16 build() {
17     _kernver=$(</usr/src/linux/version)
19     fakeroot dkms build --dkmstree "${srcdir}" -m nvidia/${pkgver} -k ${_kernver}
22 package() {
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"