2020-06-14 23:16:29 +02:00
|
|
|
# Description: a general-purpose command-line fuzzy finder
|
|
|
|
# URL: https://github.com/junegunn/fzf/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: go
|
|
|
|
|
|
|
|
name=fzf
|
2024-05-13 23:51:33 +02:00
|
|
|
version=0.52.1
|
2020-06-14 23:16:29 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/junegunn/fzf/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2023-04-02 16:48:12 +02:00
|
|
|
|
2023-10-14 20:48:02 +02:00
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
|
|
mkdir "$PKGMK_SOURCE_DIR/gopath" || true
|
|
|
|
export GOPATH="$PKGMK_SOURCE_DIR/gopath"
|
|
|
|
|
|
|
|
go build \
|
|
|
|
-trimpath \
|
|
|
|
-buildmode=pie \
|
|
|
|
-mod=readonly \
|
|
|
|
-modcacherw \
|
|
|
|
-o $name .
|
|
|
|
go build -o $name .
|
2023-04-02 16:48:12 +02:00
|
|
|
|
2020-06-14 23:16:29 +02:00
|
|
|
install -dm755 $PKG/usr/bin
|
|
|
|
install -m755 fzf bin/fzf-tmux $PKG/usr/bin/
|
|
|
|
|
|
|
|
install -dm755 $PKG/usr/share/fzf
|
|
|
|
install -m644 shell/*.bash shell/*.zsh $PKG/usr/share/fzf
|
|
|
|
}
|