Advertisement
Guest User

PKGBUILD for vimprobable2-git

a guest
Aug 28th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. # Contributor: totoloco <totoloco en gmail>
  2.  
  3. pkgname=vimprobable2-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.  
  16. build() {
  17. cd ${srcdir}
  18.  
  19. msg "Connecting to GIT server..."
  20.  
  21. if [ -d ${_gitname} ]; then
  22. cd ${_gitname} && git pull origin
  23. cd ..
  24. msg "The local files are updated."
  25. else
  26. git clone ${_gitroot}
  27. fi
  28.  
  29. msg "GIT checkout done or server timeout"
  30.  
  31. msg "Removing old build directory..."
  32. rm -Rf ${srcdir}/${_gitname}-build
  33. msg "Creating build directory..."
  34. cp -R ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
  35.  
  36. msg "Starting make..."
  37.  
  38. msg "If you want to configure vimprobable copy file config.h & keymap.h from ${srcdir} directory to ${startdir} dir and edit it"
  39.  
  40. cd ${_gitname}-build
  41. [[ -e ${startdir}/config.h ]] && msg "Using your config.h" && cp ${startdir}/config.h .
  42. [[ -e ${startdir}/keymap.h ]] && msg "Using your keymap.h" && cp ${startdir}/keymap.h .
  43.  
  44. # LDFLAGS=$(for i in $LDFLAGS; do echo "$i" | grep -v -- -Wl,--as-need ; done )
  45. make || return 1
  46. make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="${pkgdir}" install || return 1
  47. mkdir -p ${pkgdir}/usr/share/licenses/${_gitname}2
  48. chmod 0755 "${pkgdir}/usr/share/licenses/${_gitname}2/"
  49. install -m 644 LICENSE ${pkgdir}/usr/share/licenses/${_gitname}2/LICENSE
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement