void-packages/srcpkgs/docker-compose/template

33 lines
1.1 KiB
Bash

# Template file for 'docker-compose'
pkgname=docker-compose
version=1.24.1
revision=3
archs=noarch
wrksrc="compose-${version}"
build_style=python3-module
pycompile_module="compose"
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-jsonschema python3-docker>=3.7.0
python3-dockerpty python3-websocket-client python3-requests python3-docopt
python3-yaml python3-six python3-texttable python3-cached-property
python3-paramiko>=2.4.2"
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=63a0e0d3819ff77aebd3d5ea30f77b36475ed522c4dabed2eb10636e35aa9370
patch_args="-Np1"
pre_build() {
# relax texttable and requests upper bound
sed -i '/texttable/s/, < 0.10//;/requests/s/, < 2\.21//' setup.py
}
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
}