summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-28 09:04:10 +0800
committerSainnhepark2020-07-28 09:04:10 +0800
commit6a5421d7f4bb2c90649179dc0906ebbe5a7c2a4c (patch)
tree747d41e237dbbb1a8db1cd4f130713183e385ef8
downloadaur-6a5421d7f4bb2c90649179dc0906ebbe5a7c2a4c.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..d0d4818f608
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = neovim-coc-pairs-git
+ pkgdesc = Auto pairs extension for coc.nvim
+ pkgver = 1.2.20.r3.g79deeaa
+ pkgrel = 1
+ url = https://github.com/neoclide/coc-pairs
+ arch = any
+ groups = neovim-coc-extras-git
+ license =
+ makedepends = git
+ makedepends = yarn
+ makedepends = npm
+ depends = neovim-coc
+ provides = neovim-coc-pairs
+ conflicts = neovim-coc-pairs
+ source = coc-pairs::git+https://github.com/neoclide/coc-pairs.git
+ sha256sums = SKIP
+
+pkgname = neovim-coc-pairs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..378ac778b59
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+pkgname=neovim-coc-pairs-git
+_pkgname=neovim-coc-pairs
+_extname=coc-pairs
+pkgdesc='Auto pairs extension for coc.nvim'
+arch=('any')
+url='https://github.com/neoclide/coc-pairs'
+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=1.2.20.r3.g79deeaa
+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}/{}" \;
+}