updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / vimprobable2-git / PKGBUILD
blobc2d00824c0389187c29c10401cda31da82f733f4
1 # Contributor: totoloco <totoloco en gmail>
3 pkgname=vimprobable2-git
4 pkgver=20111214
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://www.yllr.net/vimprobable/"
9 license=('mit')
10 depends=('libwebkit>=1.1.11 gtk2 libsoup')
11 makedepends=('git')
13 _gitroot="git://git.code.sf.net/p/vimprobable/code"
14 _gitname="vimprobable"
15 _gitbranch="vimprobable2"
17 build() {
18   cd ${srcdir}
20   msg "Connecting to GIT server..."
22   if [ -d ${_gitname} ]; then
23     cd ${_gitname} && git pull origin master
24     cd ..
25     msg "The local files are updated."
26   else
27     git clone ${_gitroot} ${_gitname}
28   fi
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"
41   cd ${_gitname}-build
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 )
47   make || return 1
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