This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
63 lines (44 loc) · 1.61 KB
/
PKGBUILD
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
38
39
40
41
42
43
44
45
46
47
48
49
# vim:set ft=sh et:
# Maintainer : BlackEagle < ike DOT devolder AT gmail DOT com >
# Contributor: Thomas Baechler <[email protected]>
_pkgname=nvidia
pkgname=$_pkgname-390xx-bede
pkgver=390.138
_current_linux_version=5.8.3
_next_linux_version=5.9
pkgrel=17
pkgdesc="NVIDIA drivers for linux-bede, 390xx legacy branch"
arch=('x86_64')
url="http://www.nvidia.com/"
makedepends=(
"linux-bede>=$_current_linux_version"
"linux-bede-headers>=$_current_linux_version"
"linux-bede<$_next_linux_version"
"linux-bede-headers<$_next_linux_version"
"nvidia-390xx-dkms=$pkgver"
)
provides=('nvidia')
license=('custom')
options=(!strip)
package() {
depends=(
"linux-bede>=$_current_linux_version"
"linux-bede<$_next_linux_version"
"nvidia-390xx-utils=$pkgver"
"libglvnd"
)
local kernver=$(</usr/src/linux-bede/version)
local extradir="/usr/lib/modules/$kernver/extramodules"
# output dkms log for easier debugging
if [[ -f "/var/lib/dkms/nvidia/${pkgver}/build/make.log" ]]; then
cat "/var/lib/dkms/nvidia/${pkgver}/build/make.log"
elif [[ -f "/var/lib/dkms/nvidia/${pkgver}/${kernver}/log/make.log" ]]; then
cat "/var/lib/dkms/nvidia/${pkgver}/${kernver}/log/make.log"
fi
install -dm755 "${pkgdir}${extradir}/$_pkgname"
cp -a "/var/lib/dkms/$_pkgname/kernel-$kernver-x86_64/module"/* \
"${pkgdir}${extradir}/$_pkgname/"
install -dm755 "$pkgdir/usr/lib/modprobe.d"
echo "blacklist nouveau" >> "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
echo "blacklist nvidiafb" >> "$pkgdir/usr/lib/modprobe.d/$pkgname.conf"
}