[arch-commits] Commit in vim-clap/trunk (PKGBUILD)

Daniel M. Capella polyzen at archlinux.org
Sun Jan 3 03:33:35 UTC 2021


    Date: Sunday, January 3, 2021 @ 03:33:34
  Author: polyzen
Revision: 805089

upgpkg: vim-clap 0.22-2: Move setup_python.py to subdir

Modified:
  vim-clap/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-03 03:25:37 UTC (rev 805088)
+++ PKGBUILD	2021-01-03 03:33:34 UTC (rev 805089)
@@ -2,7 +2,7 @@
 
 pkgname=vim-clap
 pkgver=0.22
-pkgrel=1
+pkgrel=2
 pkgdesc='Modern performant generic finder and dispatcher for Vim and NeoVim'
 arch=('x86_64')
 url=https://github.com/liuchengxu/vim-clap
@@ -16,6 +16,12 @@
 source=("$url/archive/v$pkgver/vim-clap-v$pkgver.tar.gz")
 b2sums=('6fe672853936f556f456e9d0852cd4886b9d81a694c8b2e823097561a9fb8588b5811409c28ef002c96d3a4db2404a1543431868c5dc7a7a47fe60d7cdeb3311')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's,/setup_python.py,/pythonx/clap/setup_python.py,' \
+    autoload/clap/filter/sync/python.vim
+}
+
 build() {
   cd $pkgname-$pkgver
   cargo build --release --locked
@@ -35,10 +41,10 @@
   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
+  install -Dm644 -t "$pkgdir"/usr/share/vim/vimfiles/pythonx/clap \
+    pythonx/clap/*.py setup_python.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
+  cp -r autoload doc ftplugin lua plugin syntax "$pkgdir"/usr/share/vim/vimfiles
   install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
 }
 



More information about the arch-commits mailing list