39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'containerd'
|
|
pkgname=containerd
|
|
version=1.5.7
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/containerd/containerd
|
|
go_package="${go_import_path}/cmd/containerd
|
|
${go_import_path}/cmd/containerd-shim
|
|
${go_import_path}/cmd/containerd-shim-runc-v1
|
|
${go_import_path}/cmd/containerd-shim-runc-v2
|
|
${go_import_path}/cmd/ctr"
|
|
go_ldflags="-X ${go_import_path}/version.Version=${version}
|
|
-X ${go_import_path}/version.Revision=UNSET"
|
|
go_build_tags="seccomp apparmor"
|
|
hostmakedepends="pkg-config go-md2man"
|
|
makedepends="libbtrfs-devel libseccomp-devel"
|
|
depends="runc"
|
|
short_desc="Open and reliable container runtime"
|
|
maintainer="Paul Knopf <pauldotknopf@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://github.com/containerd/containerd"
|
|
distfiles="https://github.com/containerd/containerd/archive/v${version}.tar.gz"
|
|
checksum=7d8f7014a74b063da9cdf7fe8673db8dc338747efdbb9b6a6a919d5137b1987e
|
|
make_dirs="/var/lib/containerd 0755 root root"
|
|
|
|
post_build() {
|
|
# Build the man pages
|
|
for _i in containerd-config.toml.5 containerd-config.8 ; do
|
|
go-md2man -in "docs/man/$_i.md" -out "docs/man/$_i"
|
|
done
|
|
}
|
|
|
|
post_install() {
|
|
vsv containerd
|
|
|
|
for _i in containerd-config.toml.5 containerd-config.8 ; do
|
|
vman docs/man/$_i
|
|
done
|
|
}
|