docker-compose: install bash and zsh completions

This commit is contained in:
Alessio Sergi 2016-01-21 17:55:21 +01:00
parent e6afdf063b
commit 7919664697

View file

@ -1,7 +1,7 @@
# Template file for 'docker-compose'
pkgname=docker-compose
version=1.5.2
revision=1
revision=2
noarch=yes
wrksrc="compose-${version}"
build_style=python-module
@ -20,3 +20,9 @@ checksum=8f0851b417d89bc5023e72918233449a0fa72d9952ac66494c1b37434516583d
pre_build() {
sed -i '/requests/s|, < 2.8||' 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
}