From ab9c8729332d2379acd2eecceffa2d6efa46b8bc Mon Sep 17 00:00:00 2001 From: Quentin Freimanis Date: Sat, 18 Jun 2022 20:36:51 -0700 Subject: [PATCH] New package: nvidia-container-toolkit-1.10.0 --- srcpkgs/nvidia-container-toolkit/template | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/nvidia-container-toolkit/template diff --git a/srcpkgs/nvidia-container-toolkit/template b/srcpkgs/nvidia-container-toolkit/template new file mode 100644 index 00000000000..99d6afdfb11 --- /dev/null +++ b/srcpkgs/nvidia-container-toolkit/template @@ -0,0 +1,24 @@ +# Template file for 'nvidia-container-toolkit' +pkgname=nvidia-container-toolkit +version=1.10.0 +revision=1 +archs="x86_64" +build_style=go +go_import_path=github.com/NVIDIA/nvidia-container-toolkit +go_package="${go_import_path}/cmd/nvidia-container-toolkit + ${go_import_path}/cmd/nvidia-container-runtime + ${go_import_path}/cmd/nvidia-ctk" +depends="libnvidia-container" +short_desc="Build and run containers leveraging NVIDIA GPUs" +maintainer="Quentin Freimanis " +license="Apache-2.0" +homepage="https://github.com/NVIDIA/nvidia-container-toolkit/" +distfiles="https://github.com/NVIDIA/nvidia-container-toolkit/archive/v${version}.tar.gz" +checksum=7c88e6b16df92feac9a14f7ca7f2960409c71760b2563fea29c57c8799930db3 + +post_install() { + ln -sf /usr/bin/nvidia-container-toolkit ${DESTDIR}/usr/bin/nvidia-container-runtime-hook + vmkdir /etc/nvidia-container-runtime 755 + vinstall config/config.toml.centos 644 /etc/nvidia-container-runtime config.toml + vinstall oci-nvidia-hook.json 644 /usr/share/containers/oci/hooks.d 00-oci-nvidia-hook.json +}