Date: Saturday, January 2, 2021 @ 09:13:43 Author: polyzen Revision: 803573
Initial commit Added: vim-clap/ vim-clap/repos/ vim-clap/trunk/ vim-clap/trunk/PKGBUILD ----------+ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) Added: vim-clap/trunk/PKGBUILD =================================================================== --- vim-clap/trunk/PKGBUILD (rev 0) +++ vim-clap/trunk/PKGBUILD 2021-01-02 09:13:43 UTC (rev 803573) @@ -0,0 +1,45 @@ +# Maintainer: Daniel M. Capella <[email protected]> + +pkgname=vim-clap +pkgver=0.22 +pkgrel=1 +pkgdesc='Modern performant generic finder and dispatcher for Vim and NeoVim' +arch=('x86_64') +url=https://github.com/liuchengxu/vim-clap +license=('MIT') +depends=('gcc-libs') +makedepends=('python' 'rust') +optdepends=('ctags: for the proj_tags provider' + 'git: for the bcommits, commits, files, gfiles or git_files, and git_diff_files providers' + 'python: for the Python dynamic module' + 'ripgrep: for the files and grep providers') +source=("$url/archive/v$pkgver/vim-clap-v$pkgver.tar.gz") +b2sums=('6fe672853936f556f456e9d0852cd4886b9d81a694c8b2e823097561a9fb8588b5811409c28ef002c96d3a4db2404a1543431868c5dc7a7a47fe60d7cdeb3311') + +build() { + cd $pkgname-$pkgver + cargo build --release --locked + cd pythonx/clap/fuzzymatch-rs + cargo build --release --locked +} + +check() { + cd $pkgname-$pkgver/crates + cargo test --release + cd ../pythonx/clap/fuzzymatch-rs + cargo test --no-default-features --release --locked +} + +package() { + cd $pkgname-$pkgver + install -Dt "$pkgdir"/usr/bin target/release/maple + install -Dm644 pythonx/clap/fuzzymatch-rs/target/release/libfuzzymatch_rs.so \ + "$pkgdir"/usr/lib/fuzzymatch_rs.so + install -Dm644 -t "$pkgdir"/usr/share/vim/vimfiles/pythonx/clap pythonx/clap/*.py + ln -s /usr/lib/fuzzymatch_rs.so "$pkgdir"/usr/share/vim/vimfiles/pythonx/clap + cp -r autoload doc ftplugin lua plugin setup_python.py syntax \ + "$pkgdir"/usr/share/vim/vimfiles + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE +} + +# vim:set ts=2 sw=2 et:
