summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd565813214611365f9ca9b88973e9ef9c99b423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Connor Behan <connor.behan@gmail.com>
# Submitter: onefire <onefire.myself@gmail.com>
# Contributor: alyst <astukalov@gmail.com>

_pkgbase=julia-vim
pkgname=vim-julia-git
pkgver=r345.e1fcde9
pkgrel=1
pkgdesc="Vim support for the Julia language."
arch=('any')
url="https://github.com/JuliaLang/julia-vim"
depends=('vim')
makedepends=('git')
optdepends=('julia')
replaces=('julia-vim-git')
provides=('julia-vim' 'vim-julia')
license=('MIT')
install=vim-julia.install
source=('git://github.com/JuliaLang/julia-vim.git')
md5sums=('SKIP')

pkgver() {
  cd "$_pkgbase"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  #git describe --tags --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
  cd "$_pkgbase"

  for i in autoload/julia doc ftdetect ftplugin indent syntax
  do
    install -dm 755 "${pkgdir}"/usr/share/vim/vimfiles/$i
    for j in `ls $i/`
    do
      install -m 755 $i/$j "${pkgdir}"/usr/share/vim/vimfiles/$i/$j
    done
  done
  for j in `find autoload -type f`; do
    install -m 755 $j "${pkgdir}"/usr/share/vim/vimfiles/$j
  done

  rm -f "${pkgdir}"/usr/share/vim/vimfiles/doc/tags
}