From eadb71ebaafae52d17a52e2b6bf19280a1393482 Mon Sep 17 00:00:00 2001 From: Jose Beneyto Date: Tue, 26 Dec 2023 13:00:18 +0100 Subject: [PATCH] fzf: initial import --- fzf/.footprint | 4 ++++ fzf/.md5sum | 1 + fzf/Pkgfile | 31 +++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 fzf/.footprint create mode 100644 fzf/.md5sum create mode 100644 fzf/Pkgfile diff --git a/fzf/.footprint b/fzf/.footprint new file mode 100644 index 0000000..ea30312 --- /dev/null +++ b/fzf/.footprint @@ -0,0 +1,4 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/fzf +-rwxr-xr-x root/root usr/bin/fzf-tmux diff --git a/fzf/.md5sum b/fzf/.md5sum new file mode 100644 index 0000000..778403f --- /dev/null +++ b/fzf/.md5sum @@ -0,0 +1 @@ +6687e6f61baae4678490643456c362ff fzf-0.44.1.tar.gz diff --git a/fzf/Pkgfile b/fzf/Pkgfile new file mode 100644 index 0000000..9fefedb --- /dev/null +++ b/fzf/Pkgfile @@ -0,0 +1,31 @@ +# Description: a general-purpose command-line fuzzy finder +# URL: https://github.com/junegunn/fzf/ +# Maintainer: Jose Beneyto, sepen at crux dot nu +# Depends on: go + +name=fzf +version=0.44.1 +release=1 +source=(https://github.com/junegunn/fzf/archive/$version/$name-$version.tar.gz) + +build() { + cd $name-$version + + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + export GOPATH="$(pwd)/go" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -o $name . + go build -o $name . + + install -D -m 0755 $name $PKG/usr/bin/$name + install -D -m 0755 bin/$name-tmux $PKG/usr/bin/$name-tmux +}