aboutsummaryrefslogtreecommitdiff
path: root/community/fzf/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-11-02 10:26:44 +0300
committerCem Keylan <cem@ckyln.com>2020-11-02 10:26:44 +0300
commit54d45e17ad79179cb1881c7908d3a6d449803bef (patch)
tree62028d512f1f73398f48b0e4f256d75dab1febe0 /community/fzf/build
parent02f41705d1970be0f50fe793f5d0b9daf69146e0 (diff)
downloadrepository-54d45e17ad79179cb1881c7908d3a6d449803bef.tar.gz
fzf: bump to 0.24.1
Diffstat (limited to 'community/fzf/build')
-rwxr-xr-xcommunity/fzf/build12
1 files changed, 7 insertions, 5 deletions
diff --git a/community/fzf/build b/community/fzf/build
index bdd90d7c..a8c6f07f 100755
--- a/community/fzf/build
+++ b/community/fzf/build
@@ -1,10 +1,12 @@
#!/bin/sh -e
-make
-make install
+export GOPATH=$PWD/gopath
+trap "go clean -modcache" EXIT INT
+go mod vendor
-mkdir -p "$1/usr/bin"
-cp bin/* "$1/usr/bin/"
+make FZF_VERSION="$2" FZF_REVISION="${2##*.}"
+make FZF_VERSION="$2" FZF_REVISION="${2##*.}" install
-mkdir "$1/usr/share"
+mkdir -p "$1/usr/bin" "$1/usr/share"
+cp bin/* "$1/usr/bin/"
cp -r man "$1/usr/share/man"