# nvidia-utils - NVIDIA userspace libraries, nvidia-smi and CUDA loader
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=nvidia-utils
version=590.48
release=1
desc="NVIDIA userspace libraries, nvidia-smi and CUDA loader"
url="https://www.nvidia.com/"
license="NVIDIA-proprietary"
depend="nvidia-drivers gcc-libs libglvnd mesa"
makedepend=""
source="https://us.download.nvidia.com/XFree86/Linux-x86_64/590.48/NVIDIA-Linux-x86_64-590.48.run"
sha256="SKIP"

# Repackaged upstream build. Arctic prefers to compile from source, but a few
# things ship only as binaries; those live here with the licence stated plainly.
options="!strip"

package() {
	cd "NVIDIA-Linux-x86_64-590.48.run"
	install -d "$pkgdir/opt/nvidia-utils"
	cp -a . "$pkgdir/opt/nvidia-utils/"
	install -d "$pkgdir/usr/bin"
	ln -sf "/opt/nvidia-utils/nvidia-utils" "$pkgdir/usr/bin/nvidia-utils"
}
