chore(main/zoxide): Install shell completions

Also fix man page directory. Previously, man pages were in an extra man1 subdirectory.
This commit is contained in:
Biswapriyo Nath 2024-04-01 10:25:38 +00:00 committed by Chongyun Lee
parent 5a3edbbc35
commit b6b429f662
1 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A faster way to navigate your filesystem"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.9.4"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/ajeetdsouza/zoxide/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=ec002bdca37917130ae34e733eb29d4baa03b130c4b11456d630a01a938e0187
TERMUX_PKG_AUTO_UPDATE=true
@ -13,7 +14,8 @@ termux_step_pre_configure() {
}
termux_step_post_make_install() {
# Install man page:
mkdir -p $TERMUX_PREFIX/share/man/man1/
cp -r $TERMUX_PKG_SRCDIR/man/* $TERMUX_PREFIX/share/man/man1/
install -Dm644 contrib/completions/zoxide.bash "$TERMUX_PREFIX"/share/bash-completion/completions/zoxide
install -Dm644 contrib/completions/_zoxide "$TERMUX_PREFIX"/share/zsh/site-functions/_zoxide
install -Dm644 contrib/completions/zoxide.fish "$TERMUX_PREFIX"/share/fish/vendor_completions.d/zoxide.fish
install -Dm644 man/man1/*.1 -t "$TERMUX_PREFIX"/share/man/man1/
}