1 # Contributor: totoloco <totoloco en gmail>
3 pkgname=vimprobable2-git
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)."
8 url="http://www.yllr.net/vimprobable/"
10 depends=('libwebkit>=1.1.11 gtk2 libsoup')
13 _gitroot="git://git.code.sf.net/p/vimprobable/code"
14 _gitname="vimprobable"
15 _gitbranch="vimprobable2"
20 msg "Connecting to GIT server..."
22 if [ -d ${_gitname} ]; then
23 cd ${_gitname} && git pull origin master
25 msg "The local files are updated."
27 git clone ${_gitroot} ${_gitname}
30 msg "GIT checkout done or server timeout"
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
37 msg "Starting make..."
39 msg "If you want to configure vimprobable copy file config.h & keymap.h from ${srcdir} directory to ${startdir} dir and edit it"
42 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
43 [[ -e ${startdir}/config.h ]] && msg "Using your config.h" && cp ${startdir}/config.h .
44 [[ -e ${startdir}/keymap.h ]] && msg "Using your keymap.h" && cp ${startdir}/keymap.h .
46 # LDFLAGS=$(for i in $LDFLAGS; do echo "$i" | grep -v -- -Wl,--as-need ; done )
48 make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="${pkgdir}" install || return 1
49 mkdir -p ${pkgdir}/usr/share/licenses/${_gitname}2
50 chmod 0755 "${pkgdir}/usr/share/licenses/${_gitname}2/"
51 install -m 644 LICENSE ${pkgdir}/usr/share/licenses/${_gitname}2/LICENSE