aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/docker-cli/template
blob: 8299aba7846c2146a7f6e2a0099ec2f1dd0517fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Template file for 'docker-cli'
pkgname=docker-cli
version=20.10.6
revision=2
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"
maintainer="PWA COLLECTIVE <pwa@cya.cx>"
license="Apache-2.0"
homepage="http://www.docker.io"
distfiles="https://github.com/docker/cli/archive/v${version}.tar.gz"
checksum=eda53b96ab83a59502df2e5e00ab7ee867243259407ef454be55e695303c1113
system_groups="docker"

pre_build() {
	go_ldflags+=" -X \"${_cli_ver_path}.BuildTime=$(date +%Y-%m-%dT%H:%M:%SZ)\""
}

post_install() {
	vcompletion contrib/completion/fish/docker.fish fish docker
	vcompletion contrib/completion/zsh/_docker zsh docker
	vcompletion contrib/completion/bash/docker bash docker
}

docker_package() {
	build_style="meta"
	short_desc="Docker container runtime"
	depends="${sourcepkg}>=${version}_${revision} moby tini"
}