diff options
author | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2015-06-09 11:41:58 -0700 |
commit | d731edf8ffbc114b0d2800d0baa887132a4ed2c4 (patch) | |
tree | 0e7033f077c21e8ae187a69ee3e3094793850960 | |
download | aur-d731edf8ffbc114b0d2800d0baa887132a4ed2c4.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | fzf-extras.install | 38 |
3 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c3739748e15d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = fzf-extras + pkgdesc = Extra keybindings for fzf + pkgver = 0.0.5 + pkgrel = 1 + url = https://github.com/atweiden/fzf-extras + install = fzf-extras.install + arch = any + license = MIT + depends = fzf + optdepends = ctags: select tags + optdepends = git: git checkout fuzzy commits, branches + optdepends = mlocate: locate files + optdepends = vim-fzf: fzf.vim + optdepends = xdg-utils: open files + optdepends = zsh: zsh keybindings + source = fzf-extras-0.0.5.tar.gz::https://codeload.github.com/atweiden/fzf-extras/tar.gz/0.0.5 + sha256sums = ab46f8cd298460d85fa9402f64d4d62563d98be0bc241fa8bc61632ccb824cd9 + +pkgname = fzf-extras + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4752d8ac50a7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=fzf-extras +pkgver=0.0.5 +pkgrel=1 +pkgdesc="Extra keybindings for fzf" +arch=('any') +depends=('fzf') +optdepends=('ctags: select tags' + 'git: git checkout fuzzy commits, branches' + 'mlocate: locate files' + 'vim-fzf: fzf.vim' + 'xdg-utils: open files' + 'zsh: zsh keybindings') +url="https://github.com/atweiden/fzf-extras" +license=('MIT') +source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/atweiden/$pkgname/tar.gz/$pkgver) +sha256sums=('ab46f8cd298460d85fa9402f64d4d62563d98be0bc241fa8bc61632ccb824cd9') +install=fzf-extras.install + +package() { + cd "$srcdir/$pkgname-$pkgver" + + msg2 'Installing documentation...' + install -Dm 644 README.md "$pkgdir/usr/share/doc/fzf-extras/README.md" + + msg2 'Installing...' + install -Dm 755 fzf-extras.sh "$pkgdir/etc/profile.d/fzf-extras.bash" + install -Dm 755 fzf-extras.zsh "$pkgdir/etc/profile.d/fzf-extras.zsh" +} diff --git a/fzf-extras.install b/fzf-extras.install new file mode 100644 index 000000000000..5d132198eb4b --- /dev/null +++ b/fzf-extras.install @@ -0,0 +1,38 @@ +post_install() { + printf "%b\n" "$fzfin" +} + +post_upgrade() { + printf "%b\n" "$fzfup" +} + +read -d '' fzfin <<'EOF' +fzf-extras +========== + +Add the following to your shell config: + + . /etc/profile.d/fzf-extras.bash # when bash + . /etc/profile.d/fzf-extras.zsh # when zsh +EOF + +read -d '' fzfup <<'EOF' +fzf-extras +========== + +Bash Users: Potentially Breaking Update (2015-05-09) +---------------------------------------------------- + +To ensure zsh compatibility, Bash keybindings are now +installed to: + + /etc/profile.d/fzf-extras.bash + +Formerly, Bash keybindings were installed as: + + /etc/profile.d/fzf-extras.sh + +Bash users' config may be broken by this update if bashrc sources +/etc/profile.d/fzf-extra.sh, as that file is now absent. Consult with +your local config. +EOF |