summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPitBall2016-01-25 18:17:23 +0100
committerPitBall2016-01-25 18:17:23 +0100
commitcef612a4c7ef46e6977354ec1c56c320da4b150c (patch)
tree0863904037b8a559837b6945d9635527b32fadf0
downloadaur-vim-ref.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD19
-rw-r--r--install24
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9efc4a1049f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Mon Jan 25 17:16:55 UTC 2016
+pkgbase = vim-ref
+ pkgdesc = Vim plugin to view the reference.
+ pkgver = 0.4.3
+ pkgrel = 1
+ url = http://www.vim.org/scripts/script.php?script_id=3067
+ install = install
+ arch = any
+ license = GPL
+ depends = vim
+ source = vim-ref-0.4.3.zip::http://www.vim.org/scripts/download_script.php?src_id=14809
+ md5sums = 284916f5d424a2934f2e875eb5ce6635
+
+pkgname = vim-ref
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c22acdc4208
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: PitBall
+
+pkgname=vim-ref
+pkgver=0.4.3
+pkgrel=1
+pkgdesc="Vim plugin to view the reference."
+arch=('any')
+license=('GPL')
+depends=('vim')
+url='http://www.vim.org/scripts/script.php?script_id=3067'
+source=("$pkgname-$pkgver.zip::http://www.vim.org/scripts/download_script.php?src_id=14809")
+md5sums=('284916f5d424a2934f2e875eb5ce6635')
+install=install
+
+ package() {
+ install -d $pkgdir/usr/share/vim/vimfiles
+ cp -a {autoload,doc,plugin} \
+ $pkgdir/usr/share/vim/vimfiles/
+ }
diff --git a/install b/install
new file mode 100644
index 00000000000..0a9895647c9
--- /dev/null
+++ b/install
@@ -0,0 +1,24 @@
+vimdocinstall() {
+ echo -n " Updating Vim help tags... "
+ /usr/bin/vim --noplugin -u NONE -U NONE \
+ --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done."
+}
+
+post_install() {
+ vimdocinstall
+
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ vimdocinstall
+}
+
+op=$1
+shift
+
+$op $*