blob: 630e8b0e1ca9241ecb14bdcb4e3083f08e26da75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Karl Ludwig Brennan <karlludwigbrennan@outlook.com>
# Contributor: Jérémy "Vrakfall" Lecocq <jeremy [dot] lecocq [at] protonmail [dot] com>
# Contributor: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Thomas Baechler <thomas@archlinux.org>
_pkgmainbranch=nvidia
pkgname=nvidia-525xx
pkgver=525.147.05
pkgrel=1
pkgdesc="NVIDIA drivers for linux, 525 branch"
arch=('x86_64')
url="https://www.nvidia.com/"
makedepends=('linux-headers' "nvidia-dkms=$pkgver")
conflicts=('nvidia')
provides=('nvidia' 'NVIDIA-MODULE')
license=('custom')
options=('!strip')
build() {
_kernver=$(</usr/src/linux/version)
fakeroot dkms build --dkmstree "${srcdir}" -m nvidia/${pkgver} -k ${_kernver}
}
package() {
depends=('linux' "nvidia-utils=${pkgver}" 'libglvnd')
_kernver="$(</usr/src/linux/version)"
install -Dt "${pkgdir}/usr/lib/modules/${_kernver}/extramodules" -m644 nvidia/${pkgver}/${_kernver}/${CARCH}/module/*
# compress each module individually
find "$pkgdir" -name '*.ko' -exec xz -T1 {} +
install -Dm644 /usr/share/licenses/nvidia-dkms/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|