copy fzf vim plugin to the correct location (vim81 instead of vim80)

This commit is contained in:
Oliver Schmidhauser 2018-08-07 22:16:17 +02:00 committed by Fredrik Fornwall
parent 4bf8c3f595
commit 00ddf9c6db

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/junegunn/fzf
TERMUX_PKG_DESCRIPTION="Command-line fuzzy finder"
TERMUX_PKG_VERSION=0.17.4
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=a4b009638266b116f422d159cd1e09df64112e6ae3490964db2cd46636981ff0
TERMUX_PKG_SRCURL=https://github.com/junegunn/fzf/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC="yes"
@ -42,8 +43,8 @@ termux_step_make_install () {
cp $TERMUX_PKG_SRCDIR/man/man1/fzf.1 $TERMUX_PREFIX/share/man/man1/
# Install the vim plugin:
mkdir -p $TERMUX_PREFIX/share/vim/vim80/plugin
cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/vim/vim80/plugin/fzf.vim
mkdir -p $TERMUX_PREFIX/share/vim/vim81/plugin
cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/vim/vim81/plugin/fzf.vim
# Install bash, zsh and fish helper scripts:
mkdir -p "$TERMUX_PREFIX/share/fzf"
@ -56,5 +57,5 @@ termux_step_make_install () {
termux_step_post_massage () {
# Remove so that the vim build doesn't add it to vim-runtime:
rm $TERMUX_PREFIX/share/vim/vim80/plugin/fzf.vim
rm $TERMUX_PREFIX/share/vim/vim81/plugin/fzf.vim
}