1 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
7 pkgdesc="A scalable distributed SCM tool compiled from the crew tree"
8 url="http://www.selenic.com/mercurial"
10 depends=('python>=2.4' 'mercurial' )
11 makedepends=('asciidoc' 'xmlto')
12 provides=('mercurial')
13 conflicts=('mercurial')
14 arch=('i686' 'x86_64')
19 _hgroot=http://hg.intevation.org/mercurial/crew
24 if [ -d ${_hgrepo} ]; then
26 hg pull -u || return 1
28 hg clone ${_hgroot} ${_hgrepo} || return 1
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting make..."
35 make PREFIX=${startdir}/pkg/usr install || return 1
36 install -d $startdir/pkg/usr/share
37 install -m755 contrib/hgk $startdir/pkg/usr/bin
38 install -m644 -D contrib/zsh_completion $startdir/pkg/usr/share/zsh/site-functions/_hg
39 install -m644 -D contrib/bash_completion $startdir/pkg/etc/bash_completion.d/hg
40 install -d $startdir/pkg/usr/share/emacs/site-lisp
41 install -m644 contrib/{mq.el,mercurial.el} $startdir/pkg/usr/share/emacs/site-lisp
42 install -m644 -D contrib/vim/HGAnnotate.vim $startdir/pkg/usr/share/vim/syntax/HGAnnotate.vim
44 install -d $startdir/pkg/usr/share/mercurial/vim
45 # # Autoloading plugins to vim = no good.
46 install -m644 contrib/vim/* $startdir/pkg/usr/share/mercurial/vim