diff options
author | Sainnhepark | 2020-07-28 08:49:41 +0800 |
---|---|---|
committer | Sainnhepark | 2020-07-28 08:49:41 +0800 |
commit | 9ab34522d11641737babfc7a8f9a4be58ca148df (patch) | |
tree | 3acb09e0e965151c0570fa3f10dd9b8c2caa9b82 | |
download | aur-9ab34522d11641737babfc7a8f9a4be58ca148df.tar.gz |
init
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2095e8ab1b3f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = neovim-coc-explorer-git + pkgdesc = Explorer for coc.nvim + pkgver = v0.7.23.r0.gbb631b5 + pkgrel = 1 + url = https://github.com/weirongxu/coc-explorer + arch = any + groups = neovim-coc-extras-git + license = + makedepends = git + makedepends = yarn + makedepends = npm + depends = neovim-coc + provides = neovim-coc-explorer + conflicts = neovim-coc-explorer + source = coc-explorer::git+https://github.com/weirongxu/coc-explorer.git + sha256sums = SKIP + +pkgname = neovim-coc-explorer-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ed2b9cacf632 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Sainnhe Park <sainnhe@gmail.com> +pkgname=neovim-coc-explorer-git +_pkgname=neovim-coc-explorer +_extname=coc-explorer +pkgdesc='Explorer for coc.nvim' +arch=('any') +url='https://github.com/weirongxu/coc-explorer' +depends=('neovim-coc') +makedepends=('git' 'yarn' 'npm') +_packdir="usr/local/share/nvim/site/pack/coc/start/${_extname}" +license=('') +groups=('neovim-coc-extras-git') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("${_extname}::git+${url}.git") +pkgver=v0.7.23.r0.gbb631b5 +pkgrel=1 +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_extname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${_extname}" + yarn install --frozen-lockfile + npm prune --production +} + +package() { + cd "${srcdir}/${_extname}" + find autoload lib/*.js node_modules package.json plugin -type f -exec \ + install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \; + rm -rf node_modules +} |