Advertisement
Guest User

julia-vim-git patched PKGBUILD

a guest
Oct 5th, 2014
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.11 KB | None | 0 0
  1. # Maintainer: onefire <onefire.myself@gmail.com>
  2. pkgname=julia-vim-git
  3. pkgver=20130708
  4. pkgrel=1
  5. pkgdesc="Vim support for the Julia language."
  6. arch=('any')
  7. url="https://github.com/JuliaLang/julia-vim"
  8. depends=('vim')
  9. optdepends=('julia')
  10. provides=('julia-vim')
  11. license=('custom')
  12. _gitroot=git://github.com/JuliaLang/julia-vim.git
  13. _gitname=julia-vim
  14.  
  15. build() {
  16.   cd "${srcdir}"
  17.   msg "Connecting to GIT server...."
  18.  
  19.   if [[ -d "$_gitname" ]]; then
  20.     cd "$_gitname" && git pull origin
  21.     msg "The local files are updated."
  22.   else
  23.     git clone "$_gitroot" "$_gitname"
  24.   fi
  25.  
  26.   msg "GIT checkout done or server timeout"
  27.  
  28. }
  29.  
  30. package() {
  31.   cd "${srcdir}"/"${_gitname}"
  32.   for i in ftdetect ftplugin indent syntax
  33.   do
  34.     install -dm 755 "${pkgdir}"/usr/share/vim/vimfiles/$i
  35.     install -m 755 $i/julia.vim "${pkgdir}"/usr/share/vim/vimfiles/$i/julia.vim
  36.   done
  37.   install -dm 755 "${pkgdir}"/usr/share/vim/vimfiles/autoload
  38.   for i in generate_latex_symbols_table.jl julia_latex_symbols.vim LaTeXtoUnicode.vim
  39.   do
  40.     install -m 755 autoload/$i "${pkgdir}"/usr/share/vim/vimfiles/autoload/$i
  41.   done
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement