summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-28 09:09:23 +0800
committerSainnhepark2020-07-28 09:09:23 +0800
commitb9556a6a5ff3ee0ff10da7302fa4ba388bdb809a (patch)
tree9f3f91b4665696986ab78ea6256219182acdf4b0
downloadaur-b9556a6a5ff3ee0ff10da7302fa4ba388bdb809a.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..010c7536b87
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = neovim-coc-yank-git
+ pkgdesc = Yank highlight and persist yank history support for vim
+ pkgver = 1.1.3.r7.g7983c28
+ pkgrel = 1
+ url = https://github.com/neoclide/coc-yank
+ arch = any
+ groups = neovim-coc-extras-git
+ license =
+ makedepends = git
+ makedepends = yarn
+ makedepends = npm
+ depends = neovim-coc
+ provides = neovim-coc-yank
+ conflicts = neovim-coc-yank
+ source = coc-yank::git+https://github.com/neoclide/coc-yank.git
+ sha256sums = SKIP
+
+pkgname = neovim-coc-yank-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e0e82b540c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+pkgname=neovim-coc-yank-git
+_pkgname=neovim-coc-yank
+_extname=coc-yank
+pkgdesc='Yank highlight and persist yank history support for vim'
+arch=('any')
+url='https://github.com/neoclide/coc-yank'
+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.1.3.r7.g7983c28
+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}/{}" \;
+}