Skip to content

Commit

Permalink
main/fzf: install extra scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls committed Oct 5, 2024
1 parent 9fff9f4 commit 4f20e4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions main/fzf-extras
13 changes: 12 additions & 1 deletion main/fzf/template.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgname = "fzf"
pkgver = "0.55.0"
pkgrel = 2
pkgrel = 3
build_style = "go"
hostmakedepends = ["go"]
makedepends = ["ncurses-devel"]
Expand All @@ -17,9 +17,20 @@ def post_install(self):
self.install_man("man/man1/fzf.1")
self.install_file("plugin/fzf.vim", "usr/share/vim/vimfiles/plugin")
self.install_file("plugin/fzf.vim", "usr/share/nvim/runtime/plugin")
self.install_bin("bin/fzf-tmux")
self.install_bin("bin/fzf-preview.sh")

with self.pushd("shell"):
self.install_completion("completion.bash", "bash")
self.install_completion("completion.zsh", "zsh")

for ext in ["bash", "fish", "zsh"]:
self.install_file(f"key-bindings.{ext}", "usr/share/fzf")


@subpackage("fzf-extras")
def _(self):
return [
"usr/bin/fzf-tmux",
"usr/bin/fzf-preview.sh",
]

0 comments on commit 4f20e4f

Please sign in to comment.