This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

hgview-hg PKGBUILD

By: a guest on Jan 5th, 2013  |  syntax: Bash  |  size: 0.83 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data