vim powerline plugin, git version
This commit is contained in:
parent
2077de01d9
commit
1e780dbbc8
2 changed files with 57 additions and 0 deletions
43
pkgbuild/vim-powerline-git/PKGBUILD
Normal file
43
pkgbuild/vim-powerline-git/PKGBUILD
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
||||||
|
|
||||||
|
pkgname=vim-powerline-git
|
||||||
|
pkgver=20121011
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="The ultimate vim statusline utility"
|
||||||
|
arch=('any')
|
||||||
|
url="https://github.com/Lokaltog/vim-powerline"
|
||||||
|
license=('custom:vim')
|
||||||
|
depends=(vim)
|
||||||
|
groups=('vim-plugins')
|
||||||
|
install=vimdoc.install
|
||||||
|
|
||||||
|
_gitroot="https://github.com/Lokaltog/vim-powerline.git"
|
||||||
|
_gitname="vim-powerline"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir"
|
||||||
|
msg "Connecting to GIT server...."
|
||||||
|
|
||||||
|
if [[ -d "$_gitname" ]]; then
|
||||||
|
cd "$_gitname" && git pull origin
|
||||||
|
msg "The local files are updated."
|
||||||
|
else
|
||||||
|
git clone "$_gitroot" "$_gitname"
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg "GIT checkout done or server timeout"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$_gitname"
|
||||||
|
|
||||||
|
install -m644 -D plugin/Powerline.vim "${pkgdir}/usr/share/vim/vimfiles/plugin/Powerline.vim"
|
||||||
|
install -m644 -D doc/Powerline.txt "${pkgdir}/usr/share/vim/vimfiles/doc/Powerline.txt"
|
||||||
|
install -m644 -D autoload/Pl.vim "${pkgdir}/usr/share/vim/vimfiles/autoload/Pl.vim"
|
||||||
|
cp -a autoload/Pl "${pkgdir}/usr/share/vim/vimfiles/autoload/"
|
||||||
|
cp -a autoload/Powerline "${pkgdir}/usr/share/vim/vimfiles/autoload"
|
||||||
|
find "${pkgdir}/usr/share/vim/vimfiles" -type f -exec chmod 644 {} \;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
14
pkgbuild/vim-powerline-git/vimdoc.install
Normal file
14
pkgbuild/vim-powerline-git/vimdoc.install
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in a new issue