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

export GOPATH="$PWD/gopath"

clsed '/^BUILD_FLAGS/s/$/ -mod=vendor/' Makefile

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"