diff options
author | Andreas Wagner | 2015-06-14 11:06:21 -0400 |
---|---|---|
committer | Andreas Wagner | 2015-06-14 11:06:21 -0400 |
commit | 3d593a5befe0f07d57753f9d70bdb91afb052dbd (patch) | |
tree | 334e66b325df2f4148945f7503fec74d03cd27b0 | |
download | aur-3d593a5befe0f07d57753f9d70bdb91afb052dbd.tar.gz |
Initial import.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | vimdoc.install | 19 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..877b89a8c399 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = vim-syntastic-git + pkgdesc = Syntax checking hacks for vim + pkgver = 3.6.0_94_gb8682c3 + pkgrel = 1 + url = https://github.com/scrooloose/syntastic + install = vimdoc.install + arch = any + groups = vim-plugins + license = WTFPLv2 + makedepends = git + makedepends = rake + depends = vim-runtime + provides = vim-syntastic + conflicts = vim-syntastic + source = git+https://github.com/scrooloose/syntastic.git + sha1sums = SKIP + +pkgname = vim-syntastic-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dbbf68287d8d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net> awagner on irc.freenode.net +pkgname=vim-syntastic-git +pkgver=3.6.0_94_gb8682c3 +pkgrel=1 +pkgdesc="Syntax checking hacks for vim" +arch=('any') +url="https://github.com/scrooloose/syntastic" +license=('WTFPLv2') +groups=('vim-plugins') +depends=('vim-runtime') +makedepends=('git' 'rake') +provides=('vim-syntastic') +conflicts=('vim-syntastic') +install=vimdoc.install +source=("git+https://github.com/scrooloose/syntastic.git") +sha1sums=('SKIP') + +pkgver() { + cd syntastic + echo $(git describe --tags | sed 's#-#_#g;s#v##') +} + +package() { + mkdir -p $pkgdir/usr/share/vim/vimfiles/{plugin,doc,autoload/syntastic/,syntax_checkers} + cd "$srcdir/syntastic" + cp -r plugin/* $pkgdir/usr/share/vim/vimfiles/plugin/ + cp doc/syntastic.txt $pkgdir/usr/share/vim/vimfiles/doc/ + cp autoload/syntastic/* $pkgdir/usr/share/vim/vimfiles/autoload/syntastic/ + cp -r syntax_checkers/* $pkgdir/usr/share/vim/vimfiles/syntax_checkers/ +} + +# vim:set ts=2 sw=2 et: diff --git a/vimdoc.install b/vimdoc.install new file mode 100644 index 000000000000..67a1dfe5d8f2 --- /dev/null +++ b/vimdoc.install @@ -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 $* |