aboutsummaryrefslogtreecommitdiff
path: root/community/fzf/build
diff options
context:
space:
mode:
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"