updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / aurora-hg / PKGBUILD
blob9ff536013ae438fd250a116d545ebf33baddf2f7
1 # Maintainer: Bryan Bennett <bbenne10 at gmail dotcom>
2 _name=aurora
3 pkgname=${_name}-hg
4 pkgver=19
5 pkgrel=1
6 pkgdesc="A simple python frontend to the AUR"
7 arch=('i686' 'x86_64')
8 url="http://bitbucket.org/bbenne10"
9 license=('BSD')
10 depends=('python')
11 makedepends=('mercurial')
12 md5sums=() #generate with 'makepkg -g'
14 _hgrepo="$_name"
15 _hgroot=$url
18 build() {
19         cd $srcdir
20         msg "Connecting to hg server..."
21         if [[ -d "$_hgrepo/.hg" ]]; then
22                 msg "pull"
23                 ( cd $_hgrepo && hg pull -u )
24         else
25                 msg "clone"
26                 hg clone "${_hgroot}/${_hgrepo}"
27         fi
28         cd "${_hgrepo}"
29         install -D -m755 "$_name" "$pkgdir/usr/bin/$_name"
32 # vim:set ts=2 sw=2 et: