Advertisement
Guest User

PKGBUILD for vimprobable-git

a guest
Aug 28th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. # Contributor: Anton Kalugin aka Strafer <strafer at ufaley dot su>
  2.  
  3. pkgname=vimprobable-git
  4. pkgver=20110828
  5. pkgrel=1
  6. pkgdesc="WWW browser that behaves like the Vimperator plugin available for Mozilla Firefox. It is based on the WebKit engine (using GTK bindings). It is a fork of the currently abandoned vimpression (former webkitbrowser)."
  7. arch=('i686' 'x86_64')
  8. url="http://vimprobable.org/"
  9. license=('mit')
  10. depends=('libwebkit>=1.1.11 gtk2 libsoup')
  11. makedepends=('git')
  12.  
  13. _gitroot="git://git.code.sf.net/p/vimprobable/code"
  14. _gitname="code"
  15. _gitbranch="vimprobable1"
  16.  
  17. build() {
  18. cd ${srcdir}
  19.  
  20. msg "Connecting to GIT server..."
  21.  
  22. if [ -d ${_gitname} ]; then
  23. cd ${_gitname} && git pull origin ${_gitbranch}
  24. cd ..
  25. msg "The local files are updated."
  26. else
  27. git clone -b ${_gitbranch} ${_gitroot}
  28. fi
  29.  
  30. msg "GIT checkout done or server timeout"
  31.  
  32. msg "Removing old build directory..."
  33. rm -rf ${srcdir}/${_gitname}-build
  34. msg "Creating build directory..."
  35. cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
  36.  
  37. msg "Starting make..."
  38.  
  39. cd ${_gitname}-build
  40.  
  41. [[ ! -e ${startdir}/config.h ]] && msg "If you want to configure vimprobable — copy file \"config.h\" from build directory to ${startdir}/ and edit it"
  42. [[ -e ${startdir}/config.h ]] && msg "Using your config.h" && cp -r ${startdir}/config.h config.h
  43.  
  44. make || return 1
  45.  
  46. make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="${pkgdir}" install || return 1
  47. mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
  48. chmod 0755 "${pkgdir}/usr/share/licenses/${pkgname}/"
  49. install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement