2021-03-16 19:37:57 +00:00
|
|
|
# Template file for 'docker-cli'
|
|
|
|
pkgname=docker-cli
|
2021-11-07 23:15:11 +00:00
|
|
|
version=20.10.10
|
2021-08-24 15:28:44 +00:00
|
|
|
revision=1
|
2021-03-16 19:37:57 +00:00
|
|
|
wrksrc="cli-${version}"
|
|
|
|
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"
|
|
|
|
depends="git"
|
|
|
|
short_desc="Command-line interface for the Docker daemon"
|
2021-08-24 15:28:44 +00:00
|
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
2021-03-16 19:37:57 +00:00
|
|
|
license="Apache-2.0"
|
2021-10-15 18:26:58 +00:00
|
|
|
homepage="https://www.docker.com"
|
2021-03-16 19:37:57 +00:00
|
|
|
distfiles="https://github.com/docker/cli/archive/v${version}.tar.gz"
|
2021-11-07 23:15:11 +00:00
|
|
|
checksum=9cbae9cf1593063813ccbf7462b1cfeea14dea609708cc4ff2f92696c912d9f4
|
2021-03-16 19:37:57 +00:00
|
|
|
system_groups="docker"
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
go_ldflags+=" -X \"${_cli_ver_path}.BuildTime=$(date +%Y-%m-%dT%H:%M:%SZ)\""
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2021-04-07 11:16:43 +00:00
|
|
|
vcompletion contrib/completion/fish/docker.fish fish docker
|
|
|
|
vcompletion contrib/completion/zsh/_docker zsh docker
|
|
|
|
vcompletion contrib/completion/bash/docker bash docker
|
2021-03-16 19:37:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
docker_package() {
|
|
|
|
build_style="meta"
|
|
|
|
short_desc="Docker container runtime"
|
2021-04-20 18:20:28 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision} moby tini"
|
2021-03-16 19:37:57 +00:00
|
|
|
}
|