48 lines
2.2 KiB
Plaintext
48 lines
2.2 KiB
Plaintext
# Contributor: Stefan Reimer <stefan@zero-downtime.net>
|
|
# Maintainer: Stefan Reimer <stefan@zero-downtime.net>
|
|
pkgname=nvidia-container-toolkit
|
|
pkgver=1.10.0
|
|
pkgrel=1
|
|
pkgdesc="NVIDIA Container toolkit incl. cri hooks"
|
|
url="https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/overview.html"
|
|
arch="x86_64"
|
|
license="Apache"
|
|
makedepends="xz"
|
|
options="!check !tracedeps"
|
|
|
|
source="https://nvidia.github.io/libnvidia-container/stable/debian10/amd64/libnvidia-container1_"$pkgver"-"$pkgrel"_amd64.deb
|
|
https://nvidia.github.io/libnvidia-container/stable/debian10/amd64/libnvidia-container-tools_"$pkgver"-"$pkgrel"_amd64.deb
|
|
https://nvidia.github.io/libnvidia-container/stable/debian10/amd64/nvidia-container-toolkit_"$pkgver"-"$pkgrel"_amd64.deb"
|
|
|
|
build() {
|
|
return 0
|
|
}
|
|
|
|
package() {
|
|
depends="glibc=2.34-r0 libcap nvidia-gpu-driver"
|
|
|
|
mkdir -p "$pkgdir"/usr/lib "$pkgdir"/usr/bin "$pkgdir"/etc/nvidia-container-runtime
|
|
|
|
# libnvidia-container1
|
|
ar -x "$srcdir"/libnvidia-container1_"$pkgver"-"$pkgrel"_amd64.deb && tar xfJ data.tar.xz
|
|
mv usr/lib/x86_64-linux-gnu/* "$pkgdir"/usr/lib
|
|
rm -rf control.tar.xz data.tar.xz debian-binary usr
|
|
|
|
# libnvidia-container-tools
|
|
ar -x "$srcdir"/libnvidia-container-tools_"$pkgver"-"$pkgrel"_amd64.deb && tar xfJ data.tar.xz
|
|
mv usr/bin/nvidia-container-cli "$pkgdir"/usr/bin
|
|
rm -rf control.tar.xz data.tar.xz debian-binary usr
|
|
|
|
# nvidia-container-toolkit
|
|
ar -x "$srcdir"/nvidia-container-toolkit_"$pkgver"-"$pkgrel"_amd64.deb && tar xfJ data.tar.xz
|
|
mv usr/bin/nvidia* "$pkgdir"/usr/bin
|
|
mv etc/nvidia-container-runtime/config.toml "$pkgdir"/etc/nvidia-container-runtime
|
|
rm -rf control.tar.xz data.tar.xz debian-binary usr
|
|
}
|
|
|
|
sha512sums='
|
|
23ba2aec28f01c0037bbb4812ea542589e96f6527cf49468a4a7c54ca05808cf0984a8dfe13ee3455b8c6ae8468c58590f9e1e6996927c710bcf3e545772a356 libnvidia-container1_1.10.0-1_amd64.deb
|
|
c5369c832bd91703e6e6e86a4431c2eebb2ddeaadff126174b41ed11e969dc8cc49dcab26b3ac18abb43b466a86ce76908eaa2f5e4109c689a0c3a4fa47548b5 libnvidia-container-tools_1.10.0-1_amd64.deb
|
|
3043729bd96dd153db1dc317685167f34da6b9d202134335212fb7d861532a265a59e002c86fff2664c67687f4c8bcc75913c74018930a6c68c0f2044eceacf0 nvidia-container-toolkit_1.10.0-1_amd64.deb
|
|
'
|