2016-01-11 01:51:38 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://github.com/junegunn/fzf
|
|
|
|
TERMUX_PKG_DESCRIPTION="Command-line fuzzy finder"
|
2017-01-24 22:41:11 +01:00
|
|
|
TERMUX_PKG_VERSION=0.16.2
|
2017-01-16 10:35:29 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/junegunn/fzf/archive/${TERMUX_PKG_VERSION}.tar.gz
|
2017-01-24 22:41:11 +01:00
|
|
|
TERMUX_PKG_SHA256=6d63f82c5fc6c3b658d224e8ebac6afcd237ca30de709f4fc72692fa0b0524b1
|
2017-01-16 10:35:29 +01:00
|
|
|
TERMUX_PKG_FOLDERNAME=fzf-$TERMUX_PKG_VERSION
|
2016-01-11 01:51:38 +01:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC="yes"
|
2017-01-24 22:41:11 +01:00
|
|
|
TERMUX_PKG_DEPENDS="bash"
|
2016-01-11 01:51:38 +01:00
|
|
|
|
|
|
|
termux_step_make_install () {
|
|
|
|
termux_setup_golang
|
2017-01-16 10:35:29 +01:00
|
|
|
export CGO_CFLAGS="-I$TERMUX_PREFIX/include"
|
2016-01-11 01:51:38 +01:00
|
|
|
export CGO_LDFLAGS="-L$TERMUX_PREFIX/lib"
|
|
|
|
|
2017-01-16 10:35:29 +01:00
|
|
|
cd $TERMUX_PKG_SRCDIR/src
|
|
|
|
make android-build
|
2016-01-11 01:51:38 +01:00
|
|
|
|
|
|
|
# Install fzf-tmux, a bash script for launching fzf in a tmux pane:
|
|
|
|
cp $TERMUX_PKG_SRCDIR/bin/fzf-tmux $TERMUX_PREFIX/bin
|
|
|
|
|
|
|
|
# Install the fzf.1 man page:
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/man/man1/
|
|
|
|
cp $TERMUX_PKG_SRCDIR/man/man1/fzf.1 $TERMUX_PREFIX/share/man/man1/
|
|
|
|
|
|
|
|
# Install the vim plugin:
|
2016-10-16 02:05:05 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/vim/vim80/plugin
|
|
|
|
cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/vim/vim80/plugin/fzf.vim
|
2016-01-11 01:51:38 +01:00
|
|
|
|
2016-08-19 14:18:57 +02:00
|
|
|
# Install bash, zsh and fish helper scripts:
|
2016-08-19 14:10:27 +02:00
|
|
|
mkdir -p "$TERMUX_PREFIX/share/fzf"
|
|
|
|
cp $TERMUX_PKG_SRCDIR/shell/* "$TERMUX_PREFIX/share/fzf"
|
|
|
|
|
2016-01-11 01:51:38 +01:00
|
|
|
# Install the nvim plugin:
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/nvim/runtime/plugin
|
|
|
|
cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/nvim/runtime/plugin/
|
|
|
|
}
|
2016-01-15 16:15:01 +01:00
|
|
|
|
2016-02-15 14:14:37 +01:00
|
|
|
termux_step_post_massage () {
|
2016-01-15 16:15:01 +01:00
|
|
|
# Remove so that the vim build doesn't add it to vim-runtime:
|
2016-10-16 02:05:05 +02:00
|
|
|
rm $TERMUX_PREFIX/share/vim/vim80/plugin/fzf.vim
|
2016-01-15 16:15:01 +01:00
|
|
|
}
|