~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ffmpeg: Update from 3.1.3 to 3.1.4
[termux-packages]
/
packages
/
fzf
/
build.sh
diff --git
a/packages/fzf/build.sh
b/packages/fzf/build.sh
index
6bb6ed6
..
5d884f8
100644
(file)
--- a/
packages/fzf/build.sh
+++ b/
packages/fzf/build.sh
@@
-1,6
+1,6
@@
TERMUX_PKG_HOMEPAGE=https://github.com/junegunn/fzf
TERMUX_PKG_DESCRIPTION="Command-line fuzzy finder"
TERMUX_PKG_HOMEPAGE=https://github.com/junegunn/fzf
TERMUX_PKG_DESCRIPTION="Command-line fuzzy finder"
-TERMUX_PKG_VERSION=0.1
1.1
+TERMUX_PKG_VERSION=0.1
5.2
TERMUX_PKG_SRCURL=https://github.com/junegunn/fzf/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=fzf-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC="yes"
TERMUX_PKG_SRCURL=https://github.com/junegunn/fzf/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=fzf-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC="yes"
@@
-16,6
+16,7
@@
termux_step_make_install () {
export CGO_CFLAGS="-I$TERMUX_PREFIX/include -L$TERMUX_PREFIX/lib"
export CGO_LDFLAGS="-L$TERMUX_PREFIX/lib"
export CGO_CFLAGS="-I$TERMUX_PREFIX/include -L$TERMUX_PREFIX/lib"
export CGO_LDFLAGS="-L$TERMUX_PREFIX/lib"
+ mkdir -p $GOPATH/src/github.com/junegunn/fzf/src/vendor/github.com/junegunn/{go-runewidth,go-shellwords}
for file in runewidth.go runewidth_posix.go; do
curl -o $GOPATH/src/github.com/junegunn/fzf/src/vendor/github.com/junegunn/go-runewidth/$file \
https://raw.githubusercontent.com/junegunn/go-runewidth/master/$file
for file in runewidth.go runewidth_posix.go; do
curl -o $GOPATH/src/github.com/junegunn/fzf/src/vendor/github.com/junegunn/go-runewidth/$file \
https://raw.githubusercontent.com/junegunn/go-runewidth/master/$file
@@
-37,9
+38,18
@@
termux_step_make_install () {
# Install the vim plugin:
mkdir -p $TERMUX_PREFIX/share/vim/vim74/plugin
# Install the vim plugin:
mkdir -p $TERMUX_PREFIX/share/vim/vim74/plugin
- cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/vim/vim74/plugin
+ cp $TERMUX_PKG_SRCDIR/plugin/fzf.vim $TERMUX_PREFIX/share/vim/vim74/plugin/fzf.vim
+
+ # Install bash, zsh and fish helper scripts:
+ mkdir -p "$TERMUX_PREFIX/share/fzf"
+ cp $TERMUX_PKG_SRCDIR/shell/* "$TERMUX_PREFIX/share/fzf"
# 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/
}
# 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/
}
+
+termux_step_post_massage () {
+ # Remove so that the vim build doesn't add it to vim-runtime:
+ rm $TERMUX_PREFIX/share/vim/vim74/plugin/fzf.vim
+}