diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-16 23:45:30 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-02-16 23:45:30 +0800 |
| commit | a86209310ab9085cd3a4165703aabb0b44869848 (patch) | |
| tree | af93500a62952c1eddd398265c152863c3286b5f /repos/extra/fzf/abuild | |
| parent | 3e9e3dfff01e57ce628fbe8411f66c73d71f348e (diff) | |
| download | alicelinux-a86209310ab9085cd3a4165703aabb0b44869848.tar.gz alicelinux-a86209310ab9085cd3a4165703aabb0b44869848.zip | |
fzf: new added
Diffstat (limited to 'repos/extra/fzf/abuild')
| -rw-r--r-- | repos/extra/fzf/abuild | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/repos/extra/fzf/abuild b/repos/extra/fzf/abuild new file mode 100644 index 00000000..ad549f79 --- /dev/null +++ b/repos/extra/fzf/abuild @@ -0,0 +1,28 @@ +name=fzf +version=0.59.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/ + + install -dm755 $PKG/usr/share/fzf + install -m644 shell/*.bash shell/*.zsh $PKG/usr/share/fzf +} |