aboutsummaryrefslogtreecommitdiff
path: root/community/fzf/build
blob: a8c6f07f840727acea0c40e03da5fbb3460857bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

export GOPATH=$PWD/gopath
trap "go clean -modcache" EXIT INT
go mod vendor

make FZF_VERSION="$2" FZF_REVISION="${2##*.}"
make FZF_VERSION="$2" FZF_REVISION="${2##*.}" install

mkdir -p "$1/usr/bin" "$1/usr/share"
cp bin/* "$1/usr/bin/"
cp -r man "$1/usr/share/man"