Skip to content

Commit

Permalink
main/fzf: install fzf-tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls committed Oct 7, 2024
1 parent 9fff9f4 commit 30c281a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions main/fzf-tmux
14 changes: 13 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,21 @@ 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_man("man/man1/fzf-tmux.1")

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-tmux")
def _(self):
self.subdesc = "tmux integration script"
self.depends = [self.parent, "bash", "tmux"]
self.install_if = [self.parent, "bash", "tmux"]

return ["usr/bin/fzf-tmux", "usr/share/man/man1/fzf-tmux.1"]

0 comments on commit 30c281a

Please sign in to comment.