mirror of
https://github.com/termux/termux-packages.git
synced 2025-10-09 14:20:49 +00:00
38 lines
1.4 KiB
Bash
38 lines
1.4 KiB
Bash
TERMUX_PKG_HOMEPAGE="https://github.com/tj/git-extras"
|
|
TERMUX_PKG_DESCRIPTION="Little git extras."
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="7.4.0"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/tj/git-extras/archive/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=aaab3bab18709ec6825a875961e18a00e0c7d8214c39d6e3a63aeb99fa11c56e
|
|
TERMUX_PKG_DEPENDS="bash, git, util-linux, gawk, findutils, ncurses-utils"
|
|
TERMUX_PKG_RECOMMENDS="curl, procps, rsync"
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
termux_step_pre_configure() {
|
|
# Directory where `make install` will place bash completion script
|
|
export COMPL_DIR="$TERMUX_PREFIX/share/bash-completion/completions"
|
|
}
|
|
|
|
termux_step_make() {
|
|
# `make` and `make install` does the same thing
|
|
# So, this is an empty function
|
|
:
|
|
}
|
|
|
|
termux_step_post_make_install() {
|
|
install -Dm644 etc/git-extras-completion.zsh "$TERMUX_PREFIX"/share/git-extras/completion.zsh
|
|
install -Dm644 etc/git-extras.fish "$TERMUX_PREFIX"/share/git-extras/completion.fish
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
{
|
|
echo "echo \"If you are a zsh user, you may want to 'source ${TERMUX_PREFIX}/share/git-extras/completion.zsh'\" \\"
|
|
echo " \"and put this line into ~/.zshrc to enable zsh completion\""
|
|
echo "echo \"If you are a fish user, you may want to copy or link '${TERMUX_PREFIX}/share/git-extras/completion.fish'\" \\"
|
|
echo " \"to '~/.config/fish/completions/'\""
|
|
} >./postinst
|
|
}
|