app-containers/nvidia-container-toolkit: fix install files

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2023-03-22 21:19:27 +08:00
parent 3866dcb6c9
commit 6754345c1c

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -21,7 +21,8 @@ if [[ "${PV}" == "9999" ]] ; then
else
SRC_URI="
https://github.com/NVIDIA/${PN}/archive/v${PV/_rc/-rc.}.tar.gz -> ${P}.tar.gz
https://media.githubusercontent.com/media/vowstar/distfiles/main/${P}-deps.tar.xz
https://github.com/vowstar/gentoo-go-deps/releases/download/${P}/${P}-deps.tar.xz
https://github.com/vowstar/gentoo-go-deps/releases/download/${P}/${P}-vendor.tar.xz
"
S="${WORKDIR}/${PN}-${PV/_rc/-rc.}"
KEYWORDS="~amd64"
@@ -48,9 +49,10 @@ src_compile() {
}
src_install() {
dobin "${PN}"
into "/usr/bin"
dosym "${PN}" "/usr/bin/nvidia-container-runtime-hook"
# Fixed by https://github.com/vizv
dobin "nvidia-container-runtime"
dobin "nvidia-container-runtime-hook"
dobin "nvidia-ctk"
insinto "/etc/nvidia-container-runtime"
doins "${FILESDIR}/config.toml"
}