yadm: install shell completions

This commit is contained in:
Laurent le Beau-Martin 2021-08-03 15:35:23 -04:00 committed by Henrik Grimler
parent 10607b2a6b
commit 108cad9a42
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Yet Another Dotfiles Manager"
TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.1.0 TERMUX_PKG_VERSION=3.1.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/TheLocehiliosan/yadm/archive/$TERMUX_PKG_VERSION.tar.gz TERMUX_PKG_SRCURL=https://github.com/TheLocehiliosan/yadm/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=9f848c80deed2725c012d058bd60d1ea13539fd6fbacd5245bf97d442cb89263 TERMUX_PKG_SHA256=9f848c80deed2725c012d058bd60d1ea13539fd6fbacd5245bf97d442cb89263
TERMUX_PKG_DEPENDS="git" TERMUX_PKG_DEPENDS="git"
@ -16,4 +17,10 @@ termux_step_make() {
termux_step_make_install() { termux_step_make_install() {
install -Dm700 "$TERMUX_PKG_SRCDIR"/yadm "$TERMUX_PREFIX"/bin/ install -Dm700 "$TERMUX_PKG_SRCDIR"/yadm "$TERMUX_PREFIX"/bin/
install -Dm600 "$TERMUX_PKG_SRCDIR"/yadm.1 "$TERMUX_PREFIX"/share/man/man1/ install -Dm600 "$TERMUX_PKG_SRCDIR"/yadm.1 "$TERMUX_PREFIX"/share/man/man1/
install -Dm600 "$TERMUX_PKG_SRCDIR"/completion/bash/yadm \
"$TERMUX_PREFIX"/share/bash-completion/completions/
install -Dm600 "$TERMUX_PKG_SRCDIR"/completion/zsh/_yadm \
"$TERMUX_PREFIX"/share/zsh/site-functions/
install -Dm600 "$TERMUX_PKG_SRCDIR"/completion/fish/yadm.fish \
"$TERMUX_PREFIX"/share/fish/completions/
} }