archrelease: copy trunk to extra-x86_64
[arch-packages.git] / nvidia / trunk / PKGBUILD
blob51ff8a2e7abbb456e1e65aef6d45495a4f845c9d
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=11
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"