From cc6c4e815aa2c8bf152b6bdd89b04030c6927524 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 25 May 2017 22:16:35 +0200 Subject: [PATCH] bash-completion: Fix man completion (fixes #1056) --- packages/bash-completion/build.sh | 1 + packages/bash-completion/completions-man.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 packages/bash-completion/completions-man.patch diff --git a/packages/bash-completion/build.sh b/packages/bash-completion/build.sh index f3c215744..8fba6d359 100644 --- a/packages/bash-completion/build.sh +++ b/packages/bash-completion/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/scop/bash-completion TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell" TERMUX_PKG_VERSION=2.5 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/scop/bash-completion/releases/download/${TERMUX_PKG_VERSION}/bash-completion-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=b0b9540c65532825eca030f1241731383f89b2b65e80f3492c5dd2f0438c95cf TERMUX_PKG_FOLDERNAME=bash-completion-${TERMUX_PKG_VERSION} diff --git a/packages/bash-completion/completions-man.patch b/packages/bash-completion/completions-man.patch new file mode 100644 index 000000000..cebe2afcc --- /dev/null +++ b/packages/bash-completion/completions-man.patch @@ -0,0 +1,14 @@ +diff -u -r ../bash-completion-2.5/completions/man ./completions/man +--- ../bash-completion-2.5/completions/man 2016-09-04 17:26:26.000000000 +0200 ++++ ./completions/man 2017-05-25 21:59:14.472791735 +0200 +@@ -57,9 +57,7 @@ + fi + + local manpath="$MANPATH" +- [[ -z $manpath ]] && \ +- manpath=$( manpath 2>/dev/null || command man -w 2>/dev/null ) +- [[ -z $manpath ]] && manpath="/usr/share/man:/usr/local/share/man" ++ [[ -z $manpath ]] && manpath="@TERMUX_PREFIX@/share/man" + + # determine manual section to search + local sect