nvidia: update to 470.57.02.

This commit is contained in:
Arda Demir 2021-07-21 16:34:12 +03:00 committed by Andrew Benson
parent 56db43e832
commit 2707aadbbe

View file

@ -3,8 +3,8 @@
_desc="NVIDIA drivers for linux"
pkgname=nvidia
version=460.84
revision=2
version=470.57.02
revision=1
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="custom:NVIDIA Proprietary"
homepage="https://www.nvidia.com"
@ -19,7 +19,7 @@ conflicts="xserver-abi-video>24_1"
_pkg="NVIDIA-Linux-x86_64-${version}"
distfiles="http://uk.download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run"
checksum=a10d2171d6b2c55f63791f58264f9e92829ee4b2779b9b1d011274e63b46b960
checksum=55d7ae104827faa79e975321fe2b60f9dd42fbff65642053443c0e56fdb4c47d
# subpackages need to be processed in this specific order
subpackages="nvidia-gtklibs nvidia-dkms nvidia-opencl nvidia-libs nvidia-libs-32bit"
depends="nvidia-libs-${version}_${revision}
@ -122,6 +122,9 @@ do_install() {
# X driver
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers
# firmware
vinstall firmware/gsp.bin 644 usr/lib/firmware/nvidia/${version}
# GLX extension module for X
vinstall libglxserver_nvidia.so.${version} 755 usr/lib/nvidia/xorg
ln -sf libglxserver_nvidia.so.${version} \
@ -129,8 +132,8 @@ do_install() {
ln -sf libglxserver_nvidia.so.${version} \
${DESTDIR}/usr/lib/nvidia/xorg/libglxserver_nvidia.so.1
vinstall libnvidia-egl-wayland.so.1.1.5 755 usr/lib
ln -sf libnvidia-egl-wayland.so.1.1.5 \
vinstall libnvidia-egl-wayland.so.1.1.7 755 usr/lib
ln -sf libnvidia-egl-wayland.so.1.1.7 \
${DESTDIR}/usr/lib/libnvidia-egl-wayland.so.1
vinstall 10_nvidia.json 755 usr/share/glvnd/egl_vendor.d
@ -207,6 +210,17 @@ do_install() {
vinstall libnvidia-rtcore.so.${version} 755 usr/lib
vinstall libnvidia-cbl.so.${version} 755 usr/lib
# ngx
vbin nvidia-ngx-updater
vinstall libnvidia-ngx.so.${version} 755 usr/lib
ln -sf libnvidia-ngx.so.${version} \
${DESTDIR}/usr/lib/libnvidia-ngx.so.1
ln -sf libnvidia-ngx.so.1 \
${DESTDIR}/usr/lib/libnvidia-ngx.so
vinstall _nvngx.dll 755 usr/lib/nvidia/wine
vinstall nvngx.dll 755 usr/lib/nvidia/wine
# optix ray racing engine
vinstall libnvoptix.so.${version} 755 usr/lib
ln -sf libnvoptix.so.${version} /usr/lib/libnvoptix.so
@ -237,12 +251,12 @@ do_install() {
vdoc README.txt README
vdoc NVIDIA_Changelog
# ngx is 64-bit only
vinstall libnvidia-ngx.so.${version} 755 usr/lib
ln -sf libnvidia-ngx.so.${version} \
${DESTDIR}/usr/lib/libnvidia-ngx.so.1
ln -sf libnvidia-ngx.so.1 \
${DESTDIR}/usr/lib/libnvidia-ngx.so
# nvvm compiler
vinstall libnvidia-nvvm.so.4.0.0 755 usr/lib
ln -sf libnvidia-nvvm.so.4.0.0 \
${DESTDIR}/usr/lib/libnvidia-nvvm.so.4
ln -sf libnvidia-nvvm.so.4 \
${DESTDIR}/usr/lib/libnvidia-nvvm.so
# Libraries (64bit)
_install_libs usr/lib
@ -271,6 +285,7 @@ nvidia-libs-32bit_package() {
nvidia-libs_package() {
short_desc="${_desc} - common libraries"
depends="libglvnd"
nostrip_files="gsp.bin"
pkg_install() {
vmove usr/lib
}