blob: f728275cf78366d87e99a00861e1406b3ec97214 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
name=fzf
version=0.72.0
release=1
source="https://github.com/junegunn/${name}/archive/v${version}/${name}-${version}.tar.gz"
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
mkdir -p $SRC/.gopath
export GOPATH=$SRC/.gopath
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-o $name .
go build -o $name .
install -dm755 $PKG/usr/bin
install -m755 fzf bin/fzf-tmux $PKG/usr/bin/
}
|