1 # Contributor: bender02 at archlinux dot us
6 pkgdesc="Print a string with info about VCS suitable for inclusion into prompts"
7 url="http://vc.gerg.ca/hg/vcprompt/file/tip/README.txt"
10 makedepends=('mercurial')
12 _hgroot='http://vc.gerg.ca/hg/'
17 msg "Connecting to Mercurial server...."
19 if [ -d $_hgrepo ] ; then
22 msg "The local files are updated."
24 hg clone $_hgroot $_hgrepo
27 msg "Mercurial checkout done or server timeout"
28 msg "Starting make..."
30 rm -rf "$srcdir/$_hgrepo-build"
31 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
32 cd "$srcdir/$_hgrepo-build"
42 cd "$srcdir/$_hgrepo-build"
43 install -Dm755 $_hgrepo "${pkgdir}/usr/bin/$_hgrepo"
46 # vim:set ts=2 sw=2 et: