Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: install manpages #40597

Merged
merged 1 commit into from
Nov 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions srcpkgs/docker-cli/template
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Template file for 'docker-cli'
pkgname=docker-cli
version=20.10.21
revision=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"
hostmakedepends="pkg-config go-md2man"
depends="git"
short_desc="Command-line interface for the Docker daemon"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
Expand All @@ -22,10 +22,21 @@ pre_build() {
go_ldflags+=" -X \"${_cli_ver_path}.BuildTime=$(date +%Y-%m-%dT%H:%M:%SZ)\""
}

post_build() {
./man/md2man-all.sh
}

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

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
}

docker_package() {
Expand Down