summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhinoceros2019-06-24 14:01:39 +1000
committerRhinoceros2019-06-24 14:01:39 +1000
commit464df67f38a5db215981114f560b6b08a5e70b1f (patch)
tree0f9f79c196ff48f2f738737929367014338fbe48
downloadaur-464df67f38a5db215981114f560b6b08a5e70b1f.tar.gz
Initial commit: r197.083cbee-1
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD30
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4cc15f38db9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = vim-grammarous
+ pkgdesc = A powerful grammar checker for Vim using LanguageTool
+ pkgver = r197.083cbee
+ pkgrel = 1
+ url = https://github.com/rhysd/vim-grammarous
+ arch = any
+ groups = vim-plugins
+ license = MIT
+ depends = vim
+ depends = java-runtime=8
+ depends = languagetool
+ source = https://github.com/rhysd/vim-grammarous/archive/master.zip
+ sha256sums = 02dd5faac6c651f57fd0e2229c69a6dd6dfd10cf0a73571908faf1088b905ad8
+
+pkgname = vim-grammarous
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68448d562ee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros>
+
+pkgname=vim-grammarous
+pkgver=r197.083cbee
+pkgrel=1
+pkgdesc='A powerful grammar checker for Vim using LanguageTool'
+arch=('any')
+url='https://github.com/rhysd/vim-grammarous'
+license=('MIT')
+groups=('vim-plugins')
+depends=('vim' 'java-runtime=8' 'languagetool')
+source=(https://github.com/rhysd/vim-grammarous/archive/master.zip)
+sha256sums=('02dd5faac6c651f57fd0e2229c69a6dd6dfd10cf0a73571908faf1088b905ad8')
+
+package () {
+ cd "${pkgname}-master"
+
+ # Install primary files
+ install -d "$pkgdir/usr/share/vim/vimfiles"
+ for _dir in autoload doc plugin; do
+ cp -r "$_dir" "$pkgdir/usr/share/vim/vimfiles/$_dir"
+ done
+
+ # Use system-wide installation of LanguageTool
+ echo "let g:grammarous#languagetool_cmd = 'languagetool'" > "$pkgdir/usr/share/vim/vimfiles/plugin/grammarous.system_languagetool.vim"
+
+ # Install licence
+ install -d "${pkgdir}/usr/share/licenses/${pkgname%-git}"
+ grep '## License' README.md -A 100 > "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENCE"
+}