summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelip Manyer i Ballester2015-08-20 14:44:10 +0200
committerFelip Manyer i Ballester2015-08-20 14:44:10 +0200
commit50c4e4de7161fcdb2477b9d05e40f067050480c1 (patch)
tree1f70074db49b9410cd9ea2f89a0b5aaf8d7fe06e
downloadaur-vim-auto-pairs.tar.gz
Resurrected package from AUR3 archive
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
-rw-r--r--vimdoc.install22
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c09a1d27e7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = vim-auto-pairs
+ pkgdesc = Autoclose, insert or delete brackets, parens, quotes in pair
+ pkgver = 1.3.2
+ pkgrel = 1
+ url = http://www.vim.org/scripts/script.php?script_id=3599
+ install = vimdoc.install
+ arch = any
+ groups = vim-plugins
+ license = MIT
+ depends = vim
+ source = vim-auto-pairs.tar.gz::http://www.vim.org/scripts/download_script.php?src_id=20536
+ sha256sums = a3fa1b60b2eb54e617b3d4279c0ee78b1bf9ee4f38ea398e341d6c8ac9297652
+
+pkgname = vim-auto-pairs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..525f34a4209
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Felip Manyer i Ballester <archlinux at res hyphen telae dot cat>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=vim-auto-pairs
+pkgver=1.3.2
+_srcid=20536
+pkgrel=1
+pkgdesc="Autoclose, insert or delete brackets, parens, quotes in pair"
+arch=('any')
+depends=('vim')
+groups=('vim-plugins')
+url="http://www.vim.org/scripts/script.php?script_id=3599"
+license=('MIT')
+source=(${pkgname}.tar.gz::http://www.vim.org/scripts/download_script.php?src_id=${_srcid})
+sha256sums=('a3fa1b60b2eb54e617b3d4279c0ee78b1bf9ee4f38ea398e341d6c8ac9297652')
+install=vimdoc.install
+
+package() {
+ cd "$srcdir/${pkgname##vim-}"
+
+ msg 'Installing documentation...'
+ install -Dm 644 README.md $pkgdir/usr/share/doc/vim-auto-pairs/README.md
+
+ msg 'Installing appdirs...'
+ install -dm 755 $pkgdir/usr/share/vim/vimfiles
+ for _appdir in plugin; do
+ cp -dpr --no-preserve=ownership $_appdir $pkgdir/usr/share/vim/vimfiles/$_appdir
+ done
+}
diff --git a/vimdoc.install b/vimdoc.install
new file mode 100644
index 00000000000..b980bc6b828
--- /dev/null
+++ b/vimdoc.install
@@ -0,0 +1,22 @@
+post_install() {
+ echo -n "Updating vim help tags..."
+ /usr/bin/vim --noplugins -u NONE -U NONE \
+ --cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ echo -n "Updating vim help tags..."
+ /usr/bin/vim --noplugins -u NONE -U NONE \
+ --cmd ":helptags /usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done."
+}
+
+op=$1
+shift
+
+$op $*