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 Aug 12th, 2010  |  syntax: None  |  size: 0.74 KB  |  views: 84  |  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. pkgname="surf-hg"
  2. pkgver=221
  3. pkgrel=1
  4. pkgdesc="The latest hg pull of surf. surf is a simple webbrowser which is based on webkit/gtk+"
  5. url="http://surf.suckless.org"
  6. license=("MIT/X")
  7. arch=("i686" "x86_64")
  8. depends=("gtk2" "libwebkit" "xorg-utils")
  9. makedepends=("pkgconfig" "mercurial")
  10. conflicts=("surf")
  11. provides=("surf")
  12.  
  13. _hgroot="http://hg.suckless.org"
  14. _hgrepo="surf"
  15.  
  16. build() {
  17.   cd ${srcdir}
  18.  
  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.  
  28.   msg "Starting build process."
  29.   make || return 1
  30.   make PREFIX=/usr DESTDIR=${pkgdir} install || return 1
  31.   install -Dm0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  32. }
clone this paste RAW Paste Data