X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/08f81b7cc715eb50ba282fa18c3a27298db7c878..054b43f4ecf916dcf1d9d45f88eeef8cd7065292:/packages/fzf/build.sh diff --git a/packages/fzf/build.sh b/packages/fzf/build.sh index b58931eb..bad64ed8 100644 --- a/packages/fzf/build.sh +++ b/packages/fzf/build.sh @@ -1,33 +1,19 @@ TERMUX_PKG_HOMEPAGE=https://github.com/junegunn/fzf TERMUX_PKG_DESCRIPTION="Command-line fuzzy finder" -TERMUX_PKG_VERSION=0.15.5 +TERMUX_PKG_VERSION=0.16.4 TERMUX_PKG_SRCURL=https://github.com/junegunn/fzf/archive/${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_FOLDERNAME=fzf-${TERMUX_PKG_VERSION} +TERMUX_PKG_SHA256=294034747b0739d716d88670e830a97080fb73b8d6172b2ae695074316903e8a +TERMUX_PKG_FOLDERNAME=fzf-$TERMUX_PKG_VERSION TERMUX_PKG_BUILD_IN_SRC="yes" -TERMUX_PKG_DEPENDS="bash, ncurses" +TERMUX_PKG_DEPENDS="bash" termux_step_make_install () { - export GOPATH=$TERMUX_PKG_TMPDIR - cd $GOPATH - mkdir -p src/github.com/junegunn/fzf - cp -Rf $TERMUX_PKG_SRCDIR/* src/github.com/junegunn/fzf - termux_setup_golang - export CGO_CFLAGS="-I$TERMUX_PREFIX/include -L$TERMUX_PREFIX/lib" + export CGO_CFLAGS="-I$TERMUX_PREFIX/include" 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 - done - for file in shellwords.go util_posix.go; do - curl -o $GOPATH/src/github.com/junegunn/fzf/src/vendor/github.com/junegunn/go-shellwords/$file \ - https://raw.githubusercontent.com/junegunn/go-shellwords/master/$file - done - - cd $GOPATH/src/github.com/junegunn/fzf/src/fzf - CGO_ENABLED=1 go build -a -ldflags="-extldflags=-pie" -o $TERMUX_PREFIX/bin/fzf + cd $TERMUX_PKG_SRCDIR/src + make android-build # Install fzf-tmux, a bash script for launching fzf in a tmux pane: cp $TERMUX_PKG_SRCDIR/bin/fzf-tmux $TERMUX_PREFIX/bin