[arch-commits] Commit in (7 files)

Pierre Neidhardt ambrevar at archlinux.org
Sun Jan 24 23:15:20 UTC 2016


    Date: Monday, January 25, 2016 @ 00:15:20
  Author: ambrevar
Revision: 158783

Init

Added:
  fzf/
  fzf/repos/
  fzf/trunk/
  fzf/trunk/PKGBUILD
  fzf/trunk/fzf.install
  fzf/trunk/key-bindings.bash.patch
  fzf/trunk/key-bindings.zsh.patch

-------------------------+
 PKGBUILD                |   73 ++++++++++++++++++++++++++++++++++++++++++++++
 fzf.install             |   26 ++++++++++++++++
 key-bindings.bash.patch |   11 ++++++
 key-bindings.zsh.patch  |   12 +++++++
 4 files changed, 122 insertions(+)

Added: fzf/trunk/PKGBUILD
===================================================================
--- fzf/trunk/PKGBUILD	                        (rev 0)
+++ fzf/trunk/PKGBUILD	2016-01-24 23:15:20 UTC (rev 158783)
@@ -0,0 +1,73 @@
+# Maintainer: Pierre Neidhardt <ambrevar at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+# Contributor: foalsrock <foalsrock at gmail dot-com>
+# Contributor: jebaum <jebaum at ucla dot edu>
+
+pkgname=fzf
+pkgver=0.11.2
+pkgrel=2
+pkgdesc="Command-line fuzzy finder"
+arch=("i686" "x86_64")
+url="https://github.com/junegunn/fzf"
+license=("MIT")
+depends=("ncurses")
+makedepends=("git" "go")
+optdepends=("fish: fish keybindings"
+	"fzf-extras: fzf keybindings from junegunn wiki and dotfiles"
+	"tmux: fzf-tmux script for launching fzf in a tmux pane"
+	"vim-fzf: vim plugin"
+	"zsh: zsh keybindings")
+install="fzf.install"
+source=("$pkgname-$pkgver.tar.gz::https://codeload.github.com/junegunn/$pkgname/tar.gz/$pkgver"
+	"git+https://github.com/junegunn/$pkgname.wiki"
+	"key-bindings.bash.patch"
+	"key-bindings.zsh.patch")
+sha256sums=("5449c857e3c290069e748597182a6ab4536670dfceb4c70dfc8d73d395491ed5"
+	"SKIP"
+	"fc981d036d85d0b9a5e6ba65f84b1c0f86bcee2dabb09238e1edfa1f49a85b63"
+	"0b89bf1d6d372b9a8d5927e58151157d42848086a252979006b89b72242c52e6")
+
+prepare() {
+	cd "$srcdir/$pkgname-$pkgver"
+
+	msg2 "Patching bash and zsh key bindings..."
+	patch -p1 < "$srcdir/key-bindings.bash.patch"
+	patch -p1 < "$srcdir/key-bindings.zsh.patch"
+}
+
+build() {
+	cd "$srcdir/$pkgname-$pkgver"
+
+	msg2 'Building...'
+	GOPATH="$srcdir" TMPDIR=/tmp go get -u github.com/junegunn/fzf/...
+}
+
+package() {
+	cd "$srcdir/$pkgname-$pkgver"
+
+	## Doc
+	install -dm755 "$pkgdir/usr/share/doc/fzf/wiki"
+	install -m644 "$srcdir/fzf.wiki"/* "$pkgdir/usr/share/doc/fzf/wiki"
+	install -m644 README.md install uninstall "$pkgdir/usr/share/doc/fzf"
+
+	## Man page
+	install -Dm644 "man/man1/fzf.1" "$pkgdir/usr/share/man/man1/fzf.1"
+
+	## License
+	install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/fzf/LICENSE"
+
+	## Binaries
+	install -dm755 "$pkgdir/usr/bin"
+	install -m755 "$srcdir/bin/fzf" "bin/fzf-tmux" "$pkgdir/usr/bin/"
+
+	## Bash completion and keybindings
+	install -Dm644 "shell/completion.bash" "$pkgdir/usr/share/bash-completion/completions/fzf"
+	install -Dm755 "shell/key-bindings.bash" "$pkgdir/etc/profile.d/fzf.bash"
+
+	## Fish keybindings
+	install -Dm644 "shell/key-bindings.fish" "$pkgdir/usr/share/fish/functions/fzf.fish"
+
+	## Zsh completion and keybindings
+	install -Dm644 "shell/completion.zsh" "$pkgdir/usr/share/zsh/site-functions/_fzf"
+	install -Dm755 "shell/key-bindings.zsh" "$pkgdir/etc/profile.d/fzf.zsh"
+}

Added: fzf/trunk/fzf.install
===================================================================
--- fzf/trunk/fzf.install	                        (rev 0)
+++ fzf/trunk/fzf.install	2016-01-24 23:15:20 UTC (rev 158783)
@@ -0,0 +1,26 @@
+post_install() {
+  printf "%b\n" "$fzfin"
+}
+
+read -d '' fzfin <<'EOF'
+fzf
+===
+
+Optional fzf keybindings for bash have been placed here:
+
+    /etc/profile.d/fzf.bash
+
+To utilize, add the following to your bash config:
+
+    . /etc/profile.d/fzf.bash
+
+Or for zsh, add the following to your config:
+
+    . /etc/profile.d/fzf.zsh
+
+For fish, keybindings are in
+
+    /usr/share/fish/functions/fzf.fish
+
+Fish will source this by default.
+EOF

Added: fzf/trunk/key-bindings.bash.patch
===================================================================
--- fzf/trunk/key-bindings.bash.patch	                        (rev 0)
+++ fzf/trunk/key-bindings.bash.patch	2016-01-24 23:15:20 UTC (rev 158783)
@@ -0,0 +1,11 @@
+--- ./shell/key-bindings.bash	2015-10-05 07:52:39.421599247 -0700
++++ ./shell/key-bindings.bash	2015-10-05 07:52:57.124933562 -0700
+@@ -1,3 +1,8 @@
++# Auto-completion
++# ---------------
++[[ $- =~ i && -f /usr/share/bash-completion/completions/fzf ]] \
++  && source /usr/share/bash-completion/completions/fzf
++
+ # Key bindings
+ # ------------
+ __fzf_select__() {

Added: fzf/trunk/key-bindings.zsh.patch
===================================================================
--- fzf/trunk/key-bindings.zsh.patch	                        (rev 0)
+++ fzf/trunk/key-bindings.zsh.patch	2016-01-24 23:15:20 UTC (rev 158783)
@@ -0,0 +1,12 @@
+--- ./shell/key-bindings.zsh	2015-10-05 07:53:13.168267783 -0700
++++ ./shell/key-bindings.zsh	2015-10-05 07:53:32.584935525 -0700
+@@ -1,3 +1,9 @@
++# Auto-completion
++# ---------------
++if [[ -f /usr/share/zsh/site-functions/_fzf ]]; then
++  source /usr/share/zsh/site-functions/_fzf
++fi
++
+ # Key bindings
+ # ------------
+ if [[ $- == *i* ]]; then



More information about the arch-commits mailing list