Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: totoloco <totoloco en gmail>
- pkgname=vimprobable2-git
- pkgver=20110828
- 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://vimprobable.org/"
- license=('mit')
- depends=('libwebkit>=1.1.11 gtk2 libsoup')
- makedepends=('git')
- _gitroot="git://git.code.sf.net/p/vimprobable/code"
- _gitname="code"
- build() {
- cd ${srcdir}
- msg "Connecting to GIT server..."
- if [ -d ${_gitname} ]; then
- cd ${_gitname} && git pull origin
- cd ..
- msg "The local files are updated."
- else
- git clone ${_gitroot}
- 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
- [[ -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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement