1 # Maintainer: Yuri Bochkarev <baltzar.bz gmail com>
2 # Contributor: Yuri Bochkarev <baltzar.bz gmail com>
7 pkgdesc="Erlang Build Tools"
9 url="http://hg.basho.com/rebar"
12 makedepends=('mercurial')
16 _hgroot="http://hg.basho.com"
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
25 hg pull -u || return 1
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo || return 1
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_hgrepo-build"
35 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
36 cd "$srcdir/$_hgrepo-build"
39 install -D "$_pkgname" "$pkgdir/usr/bin/$_pkgname" || return 1