# Template file for 'docker-compose'
pkgname=docker-compose
version=1.29.2
revision=1
wrksrc="compose-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-jsonschema python3-docker>=5.0.0
 python3-dockerpty python3-requests python3-docopt python3-yaml
 python3-texttable python3-cached-property python3-paramiko
 python3-dotenv python3-distro"
short_desc="Tool to define and run multi-container Docker applications"
maintainer="pancake <pancake@nopcode.org>"
license="Apache-2.0"
homepage="https://docs.docker.com/compose/"
distfiles="https://github.com/docker/compose/archive/${version}.tar.gz"
checksum=99a9b91d476062d280c889ae4e9993d7dd6a186327bafb2bb39521f9351b96eb
make_check=no # needs ddt which is not packaged

post_install() {
	vinstall contrib/completion/bash/docker-compose 644 \
		usr/share/bash-completion/completions docker-compose
	vinstall contrib/completion/zsh/_docker-compose 644 \
		usr/share/zsh/site-functions _docker-compose
}
