summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSainnhepark2020-07-27 18:03:50 +0800
committerSainnhepark2020-07-27 18:03:50 +0800
commit171949b439e9f2bcc87b59194b5079947b4e2ac2 (patch)
treeefdfcd086921a84a52f849dd73e952f7f4dc320d
downloadaur-171949b439e9f2bcc87b59194b5079947b4e2ac2.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..30ae77987c5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = vim-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 = vim-coc-extras
+ license =
+ makedepends = git
+ makedepends = yarn
+ makedepends = npm
+ depends = vim-coc
+ provides = vim-coc-yank
+ conflicts = vim-coc-yank
+ source = coc-yank::git+https://github.com/neoclide/coc-yank.git
+ sha256sums = SKIP
+
+pkgname = vim-coc-yank-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eb8d101cc38
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Sainnhe Park <sainnhe@gmail.com>
+pkgname=vim-coc-yank-git
+_pkgname=vim-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=('vim-coc')
+makedepends=('git' 'yarn' 'npm')
+_packdir="usr/share/vim/vimfiles/pack/coc/start/${_extname}"
+license=('')
+groups=('vim-coc-extras')
+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 package.json -type f -exec \
+ install -Dm 644 '{}' "${pkgdir}/${_packdir}/{}" \;
+}