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

export GOPATH="$PWD/gopath"

clsed '/^BUILD_FLAGS/s/$/ -v -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"