diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:32:36 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:32:36 +0000 |
| commit | 93a354611e38a6949add5c2e5ccc93ef79b9755f (patch) | |
| tree | 7fee41752b1047d74c59f8ee046cd62735e7e934 /fzf/abuild | |
| parent | 35912580b66e9439f91ea441938828ad8aa33b0d (diff) | |
| download | alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip | |
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'fzf/abuild')
| -rw-r--r-- | fzf/abuild | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fzf/abuild b/fzf/abuild new file mode 100644 index 00000000..94c4acc9 --- /dev/null +++ b/fzf/abuild @@ -0,0 +1,25 @@ +name=fzf +version=0.62.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/ +} |