[arch-commits] Commit in vim-coverage-highlight/repos (2 files)

David Runge dvzrv at archlinux.org
Wed Apr 1 13:40:38 UTC 2020


    Date: Wednesday, April 1, 2020 @ 13:40:37
  Author: dvzrv
Revision: 608905

archrelease: copy trunk to community-any

Added:
  vim-coverage-highlight/repos/community-any/
  vim-coverage-highlight/repos/community-any/PKGBUILD
    (from rev 608904, vim-coverage-highlight/trunk/PKGBUILD)

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

Copied: vim-coverage-highlight/repos/community-any/PKGBUILD (from rev 608904, vim-coverage-highlight/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-04-01 13:40:37 UTC (rev 608905)
@@ -0,0 +1,31 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=coverage-highlight.vim
+pkgname=vim-coverage-highlight
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Vim plugin to highlight Python source code lines that lack test coverage"
+arch=('any')
+url="https://github.com/mgedmin/coverage-highlight.vim"
+license=('MIT')
+groups=('vim-plugins')
+depends=('python' 'vim')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mgedmin/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('4f3a23d79a8be2f04b0e4d2c7d2f9430a1db56e51e0713344a0abfaa97203c4bb1795ea158344744f4ba789fe7b2dc953bb9b7b89e09a699b73a63168f7f25eb')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 "autoload/"*.vim \
+    -t "${pkgdir}/usr/share/vim/vimfiles/autoload/"
+  install -vDm 644 "plugin/"*.vim -t "${pkgdir}/usr/share/vim/vimfiles/plugin/"
+  install -vDm 644 "pythonx/"*.py -t "${pkgdir}/usr/share/vim/vimfiles/pythonx/"
+  # byte-compiling the python script
+  find "${pkgdir}" -name '*.py' -exec python -mpy_compile {} +
+  find "${pkgdir}" -name '*.py' -exec python -O -mpy_compile {} +
+}


More information about the arch-commits mailing list