summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSainnhepark2020-07-28 08:49:41 +0800
committerSainnhepark2020-07-28 08:49:41 +0800
commit9ab34522d11641737babfc7a8f9a4be58ca148df (patch)
tree3acb09e0e965151c0570fa3f10dd9b8c2caa9b82 /PKGBUILD
downloadaur-9ab34522d11641737babfc7a8f9a4be58ca148df.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ed2b9cacf63
--- /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
+}