diff options
author | Luis Martinez | 2021-10-14 01:21:09 -0500 |
---|---|---|
committer | Luis Martinez | 2021-10-14 01:28:28 -0500 |
commit | 67bfc7f5e2d5b7d2f00640215407fa2c6d90eb7a (patch) | |
tree | e6976ba927b83dd7afbdcac8d05de8a571e76226 | |
parent | 5eaf60e9722e3e7f77a5ad52cf2ddd1167d53997 (diff) | |
download | aur-vim-vsnip-git.tar.gz |
package cleanup
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 24 | ||||
-rw-r--r-- | vsnip.install | 6 |
3 files changed, 25 insertions, 15 deletions
@@ -1,16 +1,18 @@ pkgbase = vim-vsnip-git - pkgdesc = VSCode(LSP)'s snippet feature in vim. - pkgver = master + pkgdesc = Snippet plugin for vim that supports LSP/VSCode's snippet format + pkgver = r304.9ac8044 pkgrel = 1 url = https://github.com/hrsh7th/vim-vsnip + install = vsnip.install arch = any groups = vim-plugins license = MIT makedepends = git - depends = vim + depends = vim-plugin-runtime optdepends = vim-vsnip-integ: LSP Client support + provides = vim-vsnip + conflicts = vim-vsnip source = vim-vsnip-git::git+https://github.com/hrsh7th/vim-vsnip md5sums = SKIP pkgname = vim-vsnip-git - @@ -1,16 +1,20 @@ -# Maintainer: Max Gautier <mg+archlinux@max.gautier.name> -_pkgname=vim-vsnip -pkgname=${_pkgname}-git -pkgver=master +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Max Gautier <mg+archlinux@max.gautier.name> + +pkgname=vim-vsnip-git +pkgver=r304.9ac8044 pkgrel=1 -pkgdesc="VSCode(LSP)'s snippet feature in vim." +pkgdesc="Snippet plugin for vim that supports LSP/VSCode's snippet format" arch=('any') url="https://github.com/hrsh7th/vim-vsnip" license=('MIT') groups=('vim-plugins') -depends=('vim') +depends=('vim-plugin-runtime') optdepends=('vim-vsnip-integ: LSP Client support') makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +install=vsnip.install source=("$pkgname::git+$url") md5sums=('SKIP') @@ -21,9 +25,7 @@ pkgver() { package() { cd "$pkgname" - - local vimfiles="$pkgdir/usr/share/vim/vimfiles/" - install -d "$vimfiles" - cp -dr --no-preserve=ownership autoload doc misc plugin "$vimfiles" - install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + find autoload doc misc plugin -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \; + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" } diff --git a/vsnip.install b/vsnip.install new file mode 100644 index 000000000000..3acc2d0b257b --- /dev/null +++ b/vsnip.install @@ -0,0 +1,6 @@ +post_install() { + echo ':: This plugin may require manual configuration.' + echo ':: Please consult upstream documentation.' + echo ':: This package installed a copy of the README for your convenience under' + echo ':: /usr/share/doc/vim-vsnip-git/README.md' +} |