updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / vcprompt-hg / PKGBUILD
blob0a98d5ff3e3eb40451bbb6d8ead725e8f27c606d
1 # Contributor: bender02 at archlinux dot us
3 pkgname=vcprompt-hg
4 pkgver=78
5 pkgrel=1
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"
8 license='GPLv2'
9 arch=('i686' 'x86_64')
10 makedepends=('mercurial')
12 _hgroot='http://vc.gerg.ca/hg/'
13 _hgrepo='vcprompt'
15 build() {
16   cd $srcdir
17   msg "Connecting to Mercurial server...."
19   if [ -d $_hgrepo ] ; then
20     cd $_hgrepo
21     hg pull -u
22     msg "The local files are updated."
23   else
24     hg clone $_hgroot $_hgrepo
25   fi
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"
34   #
35   # BUILD HERE
36   #
38   make
41 package(){
42   cd "$srcdir/$_hgrepo-build"
43   install -Dm755 $_hgrepo "${pkgdir}/usr/bin/$_hgrepo"
46 # vim:set ts=2 sw=2 et: