summaryrefslogtreecommitdiff
path: root/system/fzf/fzf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/fzf/fzf.SlackBuild')
-rw-r--r--system/fzf/fzf.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/system/fzf/fzf.SlackBuild b/system/fzf/fzf.SlackBuild
index 08bfb55575..31f77f7f99 100644
--- a/system/fzf/fzf.SlackBuild
+++ b/system/fzf/fzf.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fzf
-VERSION=${VERSION:-0.23.1}
+VERSION=${VERSION:-0.24.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -90,7 +90,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make
+FZF_VERSION="$VERSION" FZF_REVISION="$VERSION" make
mkdir -p $PKG/usr/bin
install -m 0755 target/fzf-linux_* $PKG/usr/bin/fzf
@@ -128,16 +128,23 @@ if [ "$WITH_VIM" = "yes" ] ; then
mkdir -p $PKG/usr/share/vim/vimfiles/plugin
install -m 0644 plugin/fzf.vim $PKG/usr/share/vim/vimfiles/plugin
+ mkdir -p $PKG/usr/share/vim/vimfiles/doc/
+ install -m 0644 doc/fzf.txt $PKG/usr/share/vim/vimfiles/doc/
+
# neovim support
mkdir -p $PKG/usr/share/nvim/runtime/plugin
+ mkdir -p $PKG/usr/share/nvim/runtime/doc
(
cd $PKG/usr/share/nvim/runtime
+
ln -s ../../../vim/vimfiles/plugin/fzf.vim plugin/fzf.vim
+ ln -s ../../../vim/vimfiles/doc/fzf.txt doc/fzf.txt
)
else
mkdir -p $PKG/usr/share/fzf/vim/
install -m 0644 plugin/fzf.vim $PKG/usr/share/fzf/vim/
+ install -m 0644 doc/fzf.txt $PKG/usr/share/fzf/vim/
fi
mkdir -p $PKG/install