# fzf - Command-line fuzzy finder
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=fzf
version=0.68.0
release=1
desc="Command-line fuzzy finder"
url="https://github.com/junegunn/fzf"
license="MIT"
depend="glibc"
makedepend="go"
source="https://github.com/junegunn/fzf/archive/refs/tags/v0.68.0.tar.gz"
sha256="SKIP"

build() {
	cd "fzf-0.68.0"
	export CGO_CPPFLAGS="$CPPFLAGS" CGO_CFLAGS="$CFLAGS" CGO_LDFLAGS="$LDFLAGS"
	export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
	go build -o "fzf" .
}

package() {
	cd "fzf-0.68.0"
	install -Dm755 "fzf" "$pkgdir/usr/bin/fzf"
}
