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

Untitled

By: a guest on Mar 3rd, 2011  |  syntax: None  |  size: 0.73 KB  |  views: 250  |  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. # Contributor: portix <portix@gmx.net>
  2.  
  3. pkgname=dwb-hg
  4. pkgver=317
  5. pkgrel=1
  6. pkgdesc="Tiling web browser based on webkit and gtk with vi-like keyboard shortcuts, latest hg-pull"
  7. url="http://bitbucket.org/portix/dwb/wiki"
  8. arch=('i686' 'x86_64')
  9. license=('GPL')
  10. depends=('libwebkit')
  11. provides=(dwb)
  12. conflicts=(dwb)
  13. makedepends=('pkgconfig' 'mercurial')
  14.  
  15. _hgroot="https://bitbucket.org/portix"
  16. _hgrepo="dwb"
  17.  
  18. build() {
  19.         if [ -d $_hgrepo ]; then
  20.                 cd $_hgrepo
  21.                 make clean
  22.                 hg pull -u
  23.         else
  24.                 hg clone ${_hgroot}/${_hgrepo}
  25.                 cd $_hgrepo
  26.         fi
  27.         rm -rf "${srcdir}/${_hgrepo}-build"
  28.         cp -a "${srcdir}/${_hgrepo}" "${srcdir}/${_hgrepo}-build"
  29.         cd ${srcdir}/${_hgrepo}-build
  30.         make
  31. }
  32. package() {
  33.         cd ${srcdir}/${_hgrepo}-build
  34.         make DESTDIR=${pkgdir} install
  35. }
clone this paste RAW Paste Data