blob: 4622eca504afc1950ee98f041ed1881dd7570103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: ltdk <usr@ltdk.xyz>
pkgname=kak-fzf-git
pkgver=r350.95b12b1
pkgrel=2
pkgdesc='FZF for kakoune'
arch=(any)
url="https://github.com/andreyorst/fzf.kak"
license=(MIT)
depends=(kakoune fzf)
makedepends=(git)
optdepends=('the_silver_searcher: file command'
'fd: file command'
'ripgrep: file/grep commands'
'bat: highlight command'
'ruby-coderay: highlight command'
'highlight: highlight command'
'ruby-rouge: highlight command'
'ctags: fzf-ctags module'
'bzr: fzf-bzr module'
'git: fzf-git module'
'mercurial: fzf-hg module'
'subversion: fzf-svn module')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
# Git, no tags available
cd "$srcdir/fzf.kak"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/fzf.kak"
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
install -Dm644 -t "$pkgdir/usr/share/kak/rc/addons" rc/fzf.kak
for module in fzf-{buffer,cd,ctags,file,grep,project,search,vcs} VCS/fzf-{bzr,git,hg,svn}; do
install -Dm644 -t "$pkgdir/usr/share/kak/rc/addons" rc/modules/$module.kak
done
}
|