24 lines
983 B
TOML
24 lines
983 B
TOML
[package]
|
|
name = "lib32-nvidia"
|
|
version = "570.133.07"
|
|
description = "32-bit NVIDIA compatibility libraries — required by Steam and Wine/Proton"
|
|
url = "https://www.nvidia.com/"
|
|
license = "Proprietary"
|
|
|
|
[source]
|
|
# NVIDIA .run installer contains both 64-bit and 32-bit libraries
|
|
url = "https://download.nvidia.com/XFree86/Linux-x86_64/${version}/NVIDIA-Linux-x86_64-${version}.run"
|
|
sha256 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
|
|
[dependencies]
|
|
run = ["lib32-glibc", "lib32-mesa"]
|
|
build = []
|
|
|
|
[build]
|
|
system = "custom"
|
|
# Extract 32-bit compatibility libs from the NVIDIA .run installer
|
|
# The .run file is a self-extracting archive
|
|
configure = """chmod +x NVIDIA-Linux-x86_64-${version}.run && ./NVIDIA-Linux-x86_64-${version}.run --extract-only"""
|
|
make = ""
|
|
install = """mkdir -p ${PKG}/usr/lib32 && cp NVIDIA-Linux-x86_64-${version}/32/lib*.so* ${PKG}/usr/lib32/ 2>/dev/null || cp NVIDIA-Linux-x86_64-${version}/libGL.so.${version} ${PKG}/usr/lib32/"""
|