1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>
8 pkgdesc='Fuzzy Finder in Rust!'
10 url='https://github.com/lotabout/skim'
13 makedepends=('git' 'rust')
15 'bash: for resp. completions and key bindings, and for sk-tmux script'
16 'fish: for resp. key bindings'
17 'tmux: for sk-tmux script'
18 'vim-plugin-runtime: for N/Vim plugin'
19 'zsh: for resp. completions and key bindings'
21 _commit='db9f194c12486343ae23b37781123ff0dbfaaf16'
22 source=("$pkgname::git+$url#commit=$_commit")
28 git describe --tags | sed 's/^v//'
34 # download dependencies
35 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
41 cargo build --frozen --release --all-features
47 cargo test --frozen --all-features
54 install -vDm755 -t "$pkgdir/usr/bin" target/release/sk bin/sk-tmux
57 install -vDm644 -t "$pkgdir/usr/share/man/man1" man/man1/*
60 install -vDm644 -t "$pkgdir/usr/share/vim/vimfiles/plugin" plugin/skim.vim
63 install -vDm644 -t "$pkgdir/usr/share/skim" shell/*.bash shell/*.zsh
64 install -vDm644 shell/key-bindings.fish "$pkgdir/usr/share/fish/functions/skim_key_bindings.fish"
67 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
70 # vim:set ts=2 sw=2 et: