diff options
author | Sainnhepark | 2020-07-27 11:48:27 +0800 |
---|---|---|
committer | Sainnhepark | 2020-07-27 11:48:27 +0800 |
commit | 5f9581fc181a6a8cb7bef39da3b0e21fbb4b099a (patch) | |
tree | 1f9f9ef2d0f1d670423f6e15643c31965d99ac5f | |
download | aur-5f9581fc181a6a8cb7bef39da3b0e21fbb4b099a.tar.gz |
init
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 73 | ||||
-rw-r--r-- | clap-neovim-doc.hook | 11 | ||||
-rw-r--r-- | clap-vim-doc.hook | 11 |
4 files changed, 130 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7ad76b1e00f7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = clap-git + pkgdesc = Modern performant generic finder and dispatcher for Vim and NeoVim + pkgver = v0.19.r14.g91331ea + pkgrel = 1 + url = https://github.com/liuchengxu/vim-clap + arch = any + license = MIT + makedepends = git + makedepends = rustup + makedepends = make + source = clap::git+https://github.com/liuchengxu/vim-clap.git + source = clap-vim-doc.hook + source = clap-neovim-doc.hook + sha256sums = SKIP + sha256sums = 0fe8cf209778fb3345886a43393cfda53e5c5e4a09d8b09a049e892ba9c33acf + sha256sums = 87029a9d3c0c899a6b5327c7c67f65af7644f2b6a697e84c6c01c2aa107cd4dd + +pkgname = vim-clap-git + depends = vim + optdepends = python: for built-in fzy python implementation + optdepends = fzf: fzf external filter + optdepends = fzy: fzy external filter + optdepends = skim: skim external filter + provides = vim-clap + conflicts = vim-clap + +pkgname = neovim-clap-git + depends = neovim + optdepends = python-pynvim: for built-in fzy python implementation + optdepends = fzf: fzf external filter + optdepends = fzy: fzy external filter + optdepends = skim: skim external filter + provides = neovim-clap + conflicts = neovim-clap + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd284507fe95 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Sainnhe Park <sainnhe@gmail.com> +pkgbase=clap-git +pkgname=('vim-clap-git' + 'neovim-clap-git') +_pkgname=clap +pkgver=v0.19.r14.g91331ea +pkgrel=1 +pkgdesc='Modern performant generic finder and dispatcher for Vim and NeoVim' +arch=('any') +url='https://github.com/liuchengxu/vim-clap' +license=('MIT') +source=("${_pkgname}::git+https://github.com/liuchengxu/vim-clap.git" + "${_pkgname}-vim-doc.hook" + "${_pkgname}-neovim-doc.hook") +sha256sums=('SKIP' + '0fe8cf209778fb3345886a43393cfda53e5c5e4a09d8b09a049e892ba9c33acf' + '87029a9d3c0c899a6b5327c7c67f65af7644f2b6a697e84c6c01c2aa107cd4dd') +makedepends=('git' + 'rustup' + 'make') + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${_pkgname}" + make + touch doc/tags +} + +package_vim-clap-git() { + depends=('vim') + optdepends=('python: for built-in fzy python implementation' + 'fzf: fzf external filter' + 'fzy: fzy external filter' + 'skim: skim external filter') + provides=('vim-clap') + conflicts=('vim-clap') + _packdir="usr/share/vim/vimfiles/pack/${_pkgname}/start/${_pkgname}" + _variant='vim' + + cd "${srcdir}/${_pkgname}" + find autoload doc ftplugin plugin pythonx/clap/fuzzymatch_rs.so pythonx/clap/*.py syntax -type f -exec \ + install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \; + install -Dm 755 "${srcdir}/${_pkgname}/target/release/maple" \ + "${pkgdir}/${_packdir}/bin/maple" + install -Dm 644 "${srcdir}/${_pkgname}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 "${srcdir}/${_pkgname}-${_variant}-doc.hook" "${pkgdir}/usr/share/libalpm/hooks/${_pkgname}-${_variant}-doc.hook" +} + +package_neovim-clap-git() { + depends=('neovim') + optdepends=('python-pynvim: for built-in fzy python implementation' + 'fzf: fzf external filter' + 'fzy: fzy external filter' + 'skim: skim external filter') + provides=('neovim-clap') + conflicts=('neovim-clap') + _packdir="usr/share/nvim/runtime/pack/${_pkgname}/start/${_pkgname}" + _variant='neovim' + + cd "${srcdir}/${_pkgname}" + find autoload doc ftplugin plugin pythonx/clap/fuzzymatch_rs.so pythonx/clap/*.py syntax -type f -exec \ + install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \; + install -Dm 755 "${srcdir}/${_pkgname}/target/release/maple" \ + "${pkgdir}/${_packdir}/bin/maple" + install -Dm 644 "${srcdir}/${_pkgname}/LICENSE" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 "${srcdir}/${_pkgname}-${_variant}-doc.hook" "${pkgdir}/usr/share/libalpm/hooks/${_pkgname}-${_variant}-doc.hook" +} diff --git a/clap-neovim-doc.hook b/clap-neovim-doc.hook new file mode 100644 index 000000000000..623d0ae30918 --- /dev/null +++ b/clap-neovim-doc.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Operation= Remove +Type = Path +Target = usr/share/nvim/runtime/pack/clap/start/clap/doc/ + +[Action] +Description = Updating Vim help tags... +Exec = /usr/bin/nvim -es --cmd ":helptags /usr/share/nvim/runtime/pack/clap/start/clap/doc" --cmd ":q" +When = PostTransaction diff --git a/clap-vim-doc.hook b/clap-vim-doc.hook new file mode 100644 index 000000000000..1b60b1465311 --- /dev/null +++ b/clap-vim-doc.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Operation= Remove +Type = Path +Target = usr/share/vim/vimfiles/pack/clap/start/clap/doc/ + +[Action] +Description = Updating Vim help tags... +Exec = /usr/bin/vim -es --cmd ":helptags /usr/share/vim/vimfiles/pack/clap/start/clap/doc" --cmd ":q" +When = PostTransaction |