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

Evangelos Foutras foutrelis at archlinux.org
Sun Feb 7 23:43:39 UTC 2016


    Date: Monday, February 8, 2016 @ 00:43:38
  Author: foutrelis
Revision: 160547

archrelease: copy trunk to community-staging-any

Added:
  vim-syntastic/repos/community-staging-any/
  vim-syntastic/repos/community-staging-any/PKGBUILD
    (from rev 160546, vim-syntastic/trunk/PKGBUILD)
  vim-syntastic/repos/community-staging-any/vimdoc.install
    (from rev 160546, vim-syntastic/trunk/vimdoc.install)

----------------+
 PKGBUILD       |   35 +++++++++++++++++++++++++++++++++++
 vimdoc.install |   19 +++++++++++++++++++
 2 files changed, 54 insertions(+)

Copied: vim-syntastic/repos/community-staging-any/PKGBUILD (from rev 160546, vim-syntastic/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-02-07 23:43:38 UTC (rev 160547)
@@ -0,0 +1,35 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Felip Manyer i Ballester <archlinux at res hyphen telae dot cat>
+# Contributor: Alex Ferrando <alferpal at gmail.com>
+# Contributor: Zhang Li <richselian at gmail.com>
+
+pkgname=vim-syntastic
+_pkgname=syntastic
+pkgver=3.7.0
+pkgrel=2
+pkgdesc='Automatic syntax checking for Vim'
+arch=('any')
+url='http://www.vim.org/scripts/script.php?script_id=2736'
+license=('custom:WTFPL')
+depends=('vim')
+groups=('vim-plugins')
+install=vimdoc.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrooloose/${_pkgname}/archive/${pkgver}.tar.gz")
+md5sums=('7de3859440922dc51bca229b99abfce2')
+
+package() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+
+    install -d "${pkgdir}/usr/share/vim/vimfiles/"{plugin,doc,autoload/syntastic/,syntax_checkers}
+    find . -type d -exec chmod 755 '{}' \;
+    cp -dr plugin/* "$pkgdir/usr/share/vim/vimfiles/plugin/"
+    install -Dm0644 doc/syntastic.txt "${pkgdir}/usr/share/vim/vimfiles/doc/syntastic.txt"
+    cp autoload/syntastic/* "$pkgdir/usr/share/vim/vimfiles/autoload/syntastic/"
+    cp -dr syntax_checkers/* "$pkgdir/usr/share/vim/vimfiles/syntax_checkers/"
+
+    # remove rustc checker (fixes FS#41517)
+    rm -rf "${pkgdir}/usr/share/vim/vimfiles/syntax_checkers/rust/"
+
+    # install license file
+    install -Dm0644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: vim-syntastic/repos/community-staging-any/vimdoc.install (from rev 160546, vim-syntastic/trunk/vimdoc.install)
===================================================================
--- community-staging-any/vimdoc.install	                        (rev 0)
+++ community-staging-any/vimdoc.install	2016-02-07 23:43:38 UTC (rev 160547)
@@ -0,0 +1,19 @@
+post_install() {
+    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."
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install
+}
+
+op=$1
+shift
+
+$op $*



More information about the arch-commits mailing list