diff options
author | KevMoriarty | 2015-07-16 21:01:16 +0200 |
---|---|---|
committer | KevMoriarty | 2015-07-16 21:01:16 +0200 |
commit | 1f8d9bd7c85701df2ca09d1159b983599e6e577d (patch) | |
tree | f8a8c00a4ee3816fa0cc3ab3a070a73f1564c938 | |
download | aur-1f8d9bd7c85701df2ca09d1159b983599e6e577d.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | vimdoc.install | 13 |
3 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8d0c850fda59 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = vim-easy-align + pkgdesc = A Vim alignment plugin + pkgver = 20150716 + pkgrel = 1 + url = https://github.com/junegunn/vim-easy-align + install = vimdoc.install + arch = any + groups = vim-plugins + license = MIT + depends = vim + +pkgname = vim-easy-align + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..59883dc4192e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: KevMoriarty <kevmoriarty@gmx.com> + +pkgname=vim-easy-align +pkgver=20150716 +pkgrel=1 +pkgdesc='A Vim alignment plugin' +arch=('any') +url="https://github.com/junegunn/vim-easy-align" +license=('MIT') +depends=('vim') +groups=('vim-plugins') +install='vimdoc.install' +conflicts=('') +replaces=('') +provides=('') + +# Cleaner _git format +_gitdomain='github.com' +_gituser='junegunn' +_gitname='vim-easy-align' +_gitroot="https://$_gitdomain/$_gituser/$_gitname.git" + +build() { + cd "$srcdir" + msg "Connecting to GIT server.... [$_gitdomain:$_gituser:$_gitname]" + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone --depth=1 $_gitroot $_gitname + fi + msg "GIT checkout done or server timeout" +} + +package() { + install -d ${pkgdir}/usr/share/vim/vimfiles/{autoload,doc,plugin} + + install -D -m644 ${srcdir}/$_gitname/autoload/* \ + ${pkgdir}/usr/share/vim/vimfiles/autoload/ + + install -D -m644 ${srcdir}/$_gitname/doc/* \ + ${pkgdir}/usr/share/vim/vimfiles/doc/ + + install -D -m644 ${srcdir}/$_gitname/plugin/* \ + ${pkgdir}/usr/share/vim/vimfiles/plugin/ +} diff --git a/vimdoc.install b/vimdoc.install new file mode 100644 index 000000000000..a23091b65bcc --- /dev/null +++ b/vimdoc.install @@ -0,0 +1,13 @@ +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 +} |