[arch-commits] Commit in vim-coverage-highlight/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 23:33:11 UTC 2021
Date: Thursday, December 2, 2021 @ 23:33:11
Author: felixonmars
Revision: 1063123
archrelease: copy trunk to community-staging-any
Added:
vim-coverage-highlight/repos/community-staging-any/
vim-coverage-highlight/repos/community-staging-any/PKGBUILD
(from rev 1063119, vim-coverage-highlight/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: vim-coverage-highlight/repos/community-staging-any/PKGBUILD (from rev 1063119, vim-coverage-highlight/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-02 23:33:11 UTC (rev 1063123)
@@ -0,0 +1,32 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=coverage-highlight.vim
+pkgname=vim-coverage-highlight
+pkgver=3.4
+pkgrel=2
+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-coverage' 'vim')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mgedmin/${_name}/archive/${pkgver}.tar.gz")
+sha512sums=('a420f9b5ce226be680158f99d95e23fb49a217c142fa5826b86ce21db157bce18f7b169c20a91b0aa72be3658767ad40efce1381c3d1047b8e91a799c01f2ed1')
+b2sums=('334d811ab21fe0f32a60235eb8dede6e604cc997f75bcad0d2db3de5412565ae9120148f4eee3e9933df13738d81ec0775fb7a6acd2c0b8af0b04323034de5bd')
+
+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