Skip to content

Commit

Permalink
fzf: initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
sepen committed Dec 26, 2023
1 parent ef71b0f commit eadb71e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fzf/.footprint
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions fzf/.md5sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6687e6f61baae4678490643456c362ff fzf-0.44.1.tar.gz
31 changes: 31 additions & 0 deletions fzf/Pkgfile
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit eadb71e

Please sign in to comment.