2012-01-31 11:46:02 +01:00
|
|
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
|
|
|
|
|
|
|
pkgname=vim-numbertoggle-git
|
2012-02-10 16:14:57 +01:00
|
|
|
pkgver=20120210
|
2012-01-31 11:46:02 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Toggles between relative and absolute line numbers automatically"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/jeffkreeftmeijer/vim-numbertoggle"
|
2012-02-10 16:14:57 +01:00
|
|
|
license=('custom:vim')
|
2012-01-31 11:46:02 +01:00
|
|
|
depends=(vim)
|
|
|
|
groups=('vim-plugins')
|
|
|
|
install=vimdoc.install
|
|
|
|
|
|
|
|
_gitroot="https://github.com/jeffkreeftmeijer/vim-numbertoggle.git"
|
|
|
|
_gitname="vim-numbertoggle"
|
|
|
|
|
|
|
|
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 -d "${pkgdir}/usr/share/vim/vimfiles/doc"
|
|
|
|
install -d "${pkgdir}/usr/share/vim/vimfiles/plugin"
|
|
|
|
install -m644 -D plugin/number_toggle.vim "${pkgdir}/usr/share/vim/vimfiles/plugin"
|
|
|
|
install -m644 -D doc/numbertoggle.txt "${pkgdir}/usr/share/vim/vimfiles/doc"
|
|
|
|
}
|
|
|
|
|