37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'docker-cli'
|
|
pkgname=docker-cli
|
|
version=20.10.5
|
|
revision=1
|
|
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 <mail@pwa.cya.cx>"
|
|
license="Apache-2.0"
|
|
homepage="http://www.docker.io"
|
|
distfiles="https://github.com/docker/cli/archive/v${version}.tar.gz"
|
|
checksum=4ba845f8c7e2e0a2ca1ec6589847159ca8d0d37b609f0e6f78def7a893b9b342
|
|
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
|
|
vcompletion contrib/completion/zsh/_docker zsh
|
|
vcompletion contrib/completion/bash/docker bash
|
|
}
|
|
|
|
docker_package() {
|
|
build_style="meta"
|
|
short_desc="Docker container runtime"
|
|
depends="${sourcepkg}>=${version}_${revision} moby"
|
|
}
|