summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraxionl2018-07-06 14:16:36 +0800
committeraxionl2018-07-06 14:16:36 +0800
commit1386538ca25328371a6d8cd9a55478db8855ca8f (patch)
treef9e9b2bc8ae8a20dab414efe5c30e851e0122485
downloadaur-1386538ca25328371a6d8cd9a55478db8855ca8f.tar.gz
[Add Package] vim-ripgrep-git: Use RipGrep in Vim and display results in a quickfix list.
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD32
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0b22b888890
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = vim-ripgrep-git
+ pkgdesc = Use RipGrep in Vim and display results in a quickfix list.
+ pkgver = r19.88ce369
+ pkgrel = 1
+ url = https://github.com/jremmen/vim-ripgrep
+ arch = any
+ groups = vim-plugins
+ license = MIT
+ makedepends = git
+ depends = ripgrep
+ depends = vim
+ source = vim-ripgrep-git::git+https://github.com/jremmen/vim-ripgrep.git
+ source = https://raw.githubusercontent.com/jremmen/vim-ripgrep/master/LICENSE
+ sha256sums = SKIP
+ sha256sums = 19a409f836b4ae64da5570915a841ff77a6092aa2cd3a06ec3ef8e49ee4eca0d
+
+pkgname = vim-ripgrep-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8096d2fb675
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Ariel AxionL <axionl@aosc.io>
+
+pkgname=vim-ripgrep-git
+pkgver=r19.88ce369
+pkgrel=1
+pkgdesc="Use RipGrep in Vim and display results in a quickfix list."
+arch=('any')
+url="https://github.com/jremmen/vim-ripgrep"
+license=('MIT')
+groups=("vim-plugins")
+depends=('ripgrep' 'vim')
+makedepends=('git')
+source=("$pkgname::git+$url.git"
+ "https://raw.githubusercontent.com/jremmen/vim-ripgrep/master/LICENSE")
+sha256sums=('SKIP'
+ '19a409f836b4ae64da5570915a841ff77a6092aa2cd3a06ec3ef8e49ee4eca0d')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ # License
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+
+ # Plugin
+ cd $srcdir/$pkgname/plugin
+ install -dm755 $pkgdir/usr/share/vim/vimfiles/plugin
+ install -Dm644 vim-ripgrep.vim ${pkgdir}/usr/share/vim/vimfiles/plugin/vim-ripgrep.vim
+}
+# vim set: ts=4 sw=4 et