[arch-commits] Commit in vim-clap/repos (community-x86_64 community-x86_64/PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Sat Jan 2 09:14:06 UTC 2021


    Date: Saturday, January 2, 2021 @ 09:14:06
  Author: polyzen
Revision: 803574

archrelease: copy trunk to community-x86_64

Added:
  vim-clap/repos/community-x86_64/
  vim-clap/repos/community-x86_64/PKGBUILD
    (from rev 803573, vim-clap/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: vim-clap/repos/community-x86_64/PKGBUILD (from rev 803573, vim-clap/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-01-02 09:14:06 UTC (rev 803574)
@@ -0,0 +1,45 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+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:



More information about the arch-commits mailing list