# cuda - NVIDIA CUDA toolkit
# 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=cuda
version=13.2
release=1
desc="NVIDIA CUDA toolkit"
url="https://developer.nvidia.com/cuda-toolkit"
license="NVIDIA-proprietary"
depend="nvidia-utils gcc-libs"
makedepend=""
source="https://developer.download.nvidia.com/compute/cuda/13.2/local_installers/cuda_13.2_linux.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 "cuda_13.2_linux.run"
	install -d "$pkgdir/opt/cuda"
	cp -a . "$pkgdir/opt/cuda/"
	install -d "$pkgdir/usr/bin"
	ln -sf "/opt/cuda/cuda" "$pkgdir/usr/bin/cuda"
}
