aboutsummaryrefslogtreecommitdiff
path: root/community/fzf/build
blob: 6cec836da16c9b2f63742b31c29fdb7972fa5a46 (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"