52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Template file for 'docker-cli'
|
|
# should be kept in sync with moby
|
|
pkgname=docker-cli
|
|
version=23.0.1
|
|
revision=2
|
|
build_style=go
|
|
go_package="github.com/docker/cli/cmd/docker"
|
|
go_import_path="github.com/docker/cli"
|
|
_cli_ver_path="github.com/docker/cli/cli/version"
|
|
go_ldflags="-X \"${_cli_ver_path}.Version=${version}\"
|
|
-X \"${_cli_ver_path}.GitCommit=tag v${version}\""
|
|
hostmakedepends="pkg-config go-md2man"
|
|
depends="git"
|
|
short_desc="Command-line interface for the Docker daemon"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.docker.com"
|
|
distfiles="https://github.com/docker/cli/archive/v${version}.tar.gz"
|
|
checksum=37bc1c71a782fc10d35aa6708c1b3c90a71f3947c33665cb0de68df25dc14d94
|
|
system_groups="docker"
|
|
|
|
pre_build() {
|
|
go_ldflags+=" -X \"${_cli_ver_path}.BuildTime=$(date +%Y-%m-%dT%H:%M:%SZ)\""
|
|
}
|
|
|
|
post_build() {
|
|
if ! [ -n "$CROSS_BUILD" ]; then
|
|
make manpages
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vcompletion contrib/completion/fish/docker.fish fish docker
|
|
vcompletion contrib/completion/zsh/_docker zsh docker
|
|
vcompletion contrib/completion/bash/docker bash docker
|
|
|
|
if ! [ -n "$CROSS_BUILD" ]; then
|
|
vman man/man1/docker-run.1
|
|
vman man/man1/docker.1
|
|
vman man/man1/docker-build.1
|
|
vman man/man5/Dockerfile.5
|
|
vman man/man5/docker-config-json.5
|
|
vman man/man8/dockerd.8
|
|
fi
|
|
}
|
|
|
|
docker_package() {
|
|
build_style="meta"
|
|
short_desc="Docker container runtime"
|
|
depends="${sourcepkg}>=${version}_${revision} moby tini"
|
|
}
|