[arch-commits] Commit in (4 files)
David Runge
dvzrv at archlinux.org
Wed Apr 1 13:39:26 UTC 2020
Date: Wednesday, April 1, 2020 @ 13:39:26
Author: dvzrv
Revision: 608904
Adding vim-coverage-highlight.
Added:
vim-coverage-highlight/
vim-coverage-highlight/repos/
vim-coverage-highlight/trunk/
vim-coverage-highlight/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: vim-coverage-highlight/trunk/PKGBUILD
===================================================================
--- vim-coverage-highlight/trunk/PKGBUILD (rev 0)
+++ vim-coverage-highlight/trunk/PKGBUILD 2020-04-01 13:39:26 UTC (rev 608904)
@@ -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