Jason Ryan avatar Jason Ryan committed f50c691

Moved config check to build
prepare() isn't run on existing code

Comments (0)

Files changed (1)

Build/vimprobable2-git/PKGBUILD

 
 pkgname=vimprobable2-git
 pkgver=1.3.0_b451324
-pkgrel=1
+pkgrel=2
 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/"
 prepare() {
   cd "$srcdir/$_gitname"
   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
+}
+
+build() {
+  cd "$srcdir/$_gitname"
   if [[ -f "$SRCDEST"/config.h ]]; then
       msg "Using your config.h" && cp "$SRCDEST"/config.h .
   fi
   if [[ -f "$SRCDEST"/keymap.h ]]; then
       msg "Using your keymap.h" && cp "$SRCDEST"/keymap.h .
   fi
-}
-
-build() {
-  cd "$srcdir/$_gitname"
   make
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.