Advertisement
Guest User

Untitled

a guest
Aug 12th, 2010
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement