archrelease: copy trunk to testing-x86_64
[arch-packages.git] / nvidia / trunk / PKGBUILD
blob97ebe7339a0c6b5301ec9de1140c13a736a44668
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=530.41.03
7 pkgrel=10
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"