Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

PKGBUILD for vimprobable2-git

By: a guest on Aug 28th, 2011  |  syntax: None  |  size: 1.70 KB  |  hits: 86  |  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: 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. }