summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-28 08:52:57 +0800
committerSainnhepark2020-07-28 08:52:57 +0800
commite7be363f271ccdf4268d16c0f998eaff268bf326 (patch)
tree2b3460157163d6d8e3fa705d4fdfeabf4ea125dd
downloadaur-e7be363f271ccdf4268d16c0f998eaff268bf326.tar.gz
init
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD34
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2f4fa73ae8a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = neovim-coc-git-git
+ pkgdesc = Git integration of coc.nvim
+ pkgver = 1.8.1.r0.g691870e
+ pkgrel = 1
+ url = https://github.com/neoclide/coc-git
+ arch = any
+ groups = neovim-coc-extras-git
+ license =
+ makedepends = yarn
+ makedepends = npm
+ depends = neovim-coc
+ depends = git
+ provides = neovim-coc-git-git
+ conflicts = neovim-coc-git-git
+ source = coc-git::git+https://github.com/neoclide/coc-git.git
+ sha256sums = SKIP
+
+pkgname = neovim-coc-git-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..af84cc9a02f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+pkgname=neovim-coc-git-git
+_pkgname=neovim-coc-git
+_extname=coc-git
+pkgdesc='Git integration of coc.nvim'
+arch=('any')
+url='https://github.com/neoclide/coc-git'
+depends=('neovim-coc' 'git')
+makedepends=('yarn' 'npm')
+_packdir="usr/local/share/nvim/site/pack/coc/start/${_extname}"
+license=('')
+groups=('neovim-coc-extras-git')
+provides=("${_pkgname}-git")
+conflicts=("${_pkgname}-git")
+source=("${_extname}::git+${url}.git")
+pkgver=1.8.1.r0.g691870e
+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
+}
+
+package() {
+ cd "${srcdir}/${_extname}"
+ find lib/*.js package.json -type f -exec \
+ install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \;
+}