Advertisement
Guest User

hgview-hg PKGBUILD

a guest
Jan 5th, 2013
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. # Maintainer:  TDY <tdy@gmx.com>
  2. # Contributor: Thomas Cyron <thomas@fooo.org>
  3.  
  4. pkgname=hgview-hg
  5. pkgver=906
  6. pkgrel=1
  7. pkgdesc="A revision history browser for mercurial repositories"
  8. arch=('any')
  9. url="http://www.logilab.org/project/hgview/"
  10. license=('GPL')
  11. depends=('docutils' 'mercurial>=1.0' 'python2-egenix-mx-base' 'python2-qscintilla')
  12. makedepends=('asciidoc' 'xmlto')
  13. provides=('hgview')
  14. conflicts=('hgview')
  15.  
  16. _hgroot=http://hg.logilab.org/
  17. _hgrepo=hgview
  18.  
  19. build() {
  20.   cd "$srcdir"
  21.  
  22.   if [[ -d $_hgrepo/.hg ]]; then
  23.     cd $_hgrepo && hg pull -u && cd ..
  24.   else
  25.     hg clone $_hgroot/$_hgrepo
  26.   fi
  27.  
  28.   rm -rf $_hgrepo-build
  29.   hg clone $_hgrepo $_hgrepo-build
  30.   cd $_hgrepo-build
  31.  
  32.   python2 setup.py build
  33. }
  34.  
  35. package() {
  36.   cd "$srcdir/$_hgrepo-build"
  37.   python2 setup.py install --prefix=/usr --root="$pkgdir"
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement