[arch-commits] Commit in vim-latexsuite/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Feb 8 00:05:38 UTC 2016


    Date: Monday, February 8, 2016 @ 01:05:37
  Author: foutrelis
Revision: 160596

archrelease: copy trunk to community-staging-any

Added:
  vim-latexsuite/repos/community-staging-any/
  vim-latexsuite/repos/community-staging-any/PKGBUILD
    (from rev 160595, vim-latexsuite/trunk/PKGBUILD)
  vim-latexsuite/repos/community-staging-any/vim-latexsuite.install
    (from rev 160595, vim-latexsuite/trunk/vim-latexsuite.install)

------------------------+
 PKGBUILD               |   29 +++++++++++++++++++++++++++++
 vim-latexsuite.install |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

Copied: vim-latexsuite/repos/community-staging-any/PKGBUILD (from rev 160595, vim-latexsuite/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-02-08 00:05:37 UTC (rev 160596)
@@ -0,0 +1,29 @@
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Army
+
+pkgname=vim-latexsuite
+_pkgname=vim-latex
+pkgver=20141116
+_pkgver="1.8.23-${pkgver}.812-gitd0f31c9"
+pkgrel=2
+pkgdesc="Tools to view, edit, and compile LaTeX documents within Vim."
+arch=('any')
+url="http://vim-latex.sourceforge.net"
+license=('custom:vim')
+depends=('vim')
+optdepends=('python2' 'texlive-bin')
+groups=('vim-plugins')
+source=("https://sourceforge.net/projects/${_pkgname}/files/snapshots/${_pkgname}-${_pkgver}.tar.gz")
+md5sums=('c7662fd5ccad9912655ca585626ed515')
+install=$pkgname.install
+ 
+build() {
+	cd "${srcdir}/${_pkgname}-${_pkgver}"
+	find . -type f -name *.py -exec sed -i 's:/usr/bin/python:&2:g' {} +
+}
+
+package() {
+	cd "${srcdir}/${_pkgname}-${_pkgver}"
+	make DESTDIR="${pkgdir}" PREFIX='/usr' VIMDIR='/usr/share/vim/vimfiles' install
+}

Copied: vim-latexsuite/repos/community-staging-any/vim-latexsuite.install (from rev 160595, vim-latexsuite/trunk/vim-latexsuite.install)
===================================================================
--- community-staging-any/vim-latexsuite.install	                        (rev 0)
+++ community-staging-any/vim-latexsuite.install	2016-02-08 00:05:37 UTC (rev 160596)
@@ -0,0 +1,41 @@
+# arg 1: the new package version
+post_install() {
+    echo '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
+    echo '% Set the following lines in your ~/.vimrc or the systemwide /etc/vimrc:'
+    echo '% filetype plugin indent on'
+    echo '% set grepprg=grep\ -nH\ $*'
+    echo '% let g:tex_flavor = "latex"'
+    echo '% '
+    echo '% Also, this installs to /usr/share/vim/vimfiles, which may not be in'
+    echo '% your runtime path (RTP). Be sure to add it too, e.g:'
+    echo '% set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after'
+    echo '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
+
+    # rebuild the vim documentation tags
+    echo -n "Updating vim help tags..."
+    /usr/bin/vim --noplugins -u NONE -U NONE \
+        --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+    echo "done."
+
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+    echo -n "Updating vim help tags..."
+    /usr/bin/vim --noplugins -u NONE -U NONE \
+        --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+    echo "done."
+}
+
+# arg 1: the old package version
+post_remove() {
+    echo -n "Updating vim help tags..."
+    /usr/bin/vim --noplugins -u NONE -U NONE \
+        --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+    echo "done."
+}
+
+op=$1
+shift
+$op $* 



More information about the arch-commits mailing list