Browse Source

bash-completion: Update from 2.7 to 2.8

android-5
Fredrik Fornwall 7 years ago
parent
commit
bed31e5a3e
  1. 4
      packages/bash-completion/build.sh
  2. 15
      packages/bash-completion/completions-man.patch

4
packages/bash-completion/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/scop/bash-completion TERMUX_PKG_HOMEPAGE=https://github.com/scop/bash-completion
TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell" TERMUX_PKG_DESCRIPTION="Programmable completion for the bash shell"
TERMUX_PKG_VERSION=2.7 TERMUX_PKG_VERSION=2.8
TERMUX_PKG_SHA256=c01f5570f5698a0dda8dc9cfb2a83744daa1ec54758373a6e349bd903375f54d
TERMUX_PKG_SRCURL=https://github.com/scop/bash-completion/releases/download/${TERMUX_PKG_VERSION}/bash-completion-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=https://github.com/scop/bash-completion/releases/download/${TERMUX_PKG_VERSION}/bash-completion-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=41ba892d3f427d4a686de32673f35401bc947a7801f684127120cdb13641441e
TERMUX_PKG_DEPENDS="bash" TERMUX_PKG_DEPENDS="bash"
TERMUX_PKG_PLATFORM_INDEPENDENT=yes TERMUX_PKG_PLATFORM_INDEPENDENT=yes

15
packages/bash-completion/completions-man.patch

@ -1,14 +1,13 @@
diff -u -r ../bash-completion-2.5/completions/man ./completions/man diff -u -r ../bash-completion-2.8/completions/man ./completions/man
--- ../bash-completion-2.5/completions/man 2016-09-04 17:26:26.000000000 +0200 --- ../bash-completion-2.8/completions/man 2018-03-17 01:02:23.000000000 +0100
+++ ./completions/man 2017-05-25 21:59:14.472791735 +0200 +++ ./completions/man 2018-05-13 01:31:56.406265511 +0200
@@ -57,9 +57,7 @@ @@ -51,8 +51,7 @@
return
fi fi
local manpath="$MANPATH" - local manpath=$( manpath 2>/dev/null || command man -w 2>/dev/null )
- [[ -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="/usr/share/man:/usr/local/share/man"
+ [[ -z $manpath ]] && manpath="@TERMUX_PREFIX@/share/man" + local manpath="@TERMUX_PREFIX@/share/man"
# determine manual section to search # determine manual section to search
local sect local sect

Loading…
Cancel
Save