[ create a new paste ] login | about

Link: http://codepad.org/1jKWulMC    [ raw code | fork ]

Plain Text, pasted on Dec 13:
# Contributor: totoloco <totoloco en gmail>

pkgname=vimprobable2-git
pkgver=20111213
pkgrel=1
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)."
arch=('i686' 'x86_64')
url="http://www.yllr.net/vimprobable/"
license=('mit')
depends=('libwebkit>=1.1.11 gtk2 libsoup')
makedepends=('git')

_gitroot="git://git.code.sf.net/p/vimprobable/code"
_gitname="vimprobable"
_gitbranch="vimprobable2"

build() {
  cd ${srcdir}

  msg "Connecting to GIT server..."

  if [ -d ${_gitname} ]; then
    cd ${_gitname} && git pull origin master
    cd ..
    msg "The local files are updated."
  else
    git clone ${_gitroot} ${_gitname}
  fi

  msg "GIT checkout done or server timeout"

  msg "Removing old build directory..."
  rm -Rf ${srcdir}/${_gitname}-build
  msg "Creating build directory..."
  cp -R ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build

  msg "Starting make..."

  msg "If you want to configure vimprobable copy file config.h & keymap.h  from ${srcdir} directory to ${startdir} dir and edit it"

  cd ${_gitname}-build
  sed -i 's:LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4:LIBS = gtk+-2.0 webkit-1.0 libsoup-2.4 javascriptcoregtk-1.0:' Makefile
  [[ -e ${startdir}/config.h ]] && msg "Using your config.h" && cp ${startdir}/config.h .
  [[ -e ${startdir}/keymap.h ]] && msg "Using your keymap.h" && cp ${startdir}/keymap.h .

#  LDFLAGS=$(for i in $LDFLAGS; do echo "$i" | grep -v -- -Wl,--as-need ; done )
  make || return 1
  make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="${pkgdir}" install || return 1
  mkdir -p ${pkgdir}/usr/share/licenses/${_gitname}2
  chmod 0755  "${pkgdir}/usr/share/licenses/${_gitname}2/"
  install -m 644 LICENSE ${pkgdir}/usr/share/licenses/${_gitname}2/LICENSE
}


Create a new paste based on this one


Comments: