summaryrefslogtreecommitdiff
path: root/qutebrowser-from-source
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-08-21 09:08:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-08-21 09:08:46 -0300
commit92aa96e4eb3d47b409e64c6ceac825bde22448f9 (patch)
tree7452c9fa6fb6dedfe64af73624b40e399157210a /qutebrowser-from-source
parent7d9ac5e3cbb9470af28f8352f0cecec6aa661df5 (diff)
downloadqutebrowser-92aa96e4eb3d47b409e64c6ceac825bde22448f9.tar.gz
qutebrowser-92aa96e4eb3d47b409e64c6ceac825bde22448f9.tar.bz2
Fix: build procedure has changed and packages are available nowHEADmaster
Diffstat (limited to 'qutebrowser-from-source')
-rwxr-xr-xqutebrowser-from-source44
1 files changed, 44 insertions, 0 deletions
diff --git a/qutebrowser-from-source b/qutebrowser-from-source
new file mode 100755
index 0000000..b856e07
--- /dev/null
+++ b/qutebrowser-from-source
@@ -0,0 +1,44 @@
+#!/bin/bash
+#
+# Wrapper for building/running qutebrowser from source
+#
+# Since it's already avaiable in most distros (like Debian), you
+# might be interested in the official builds.
+#
+
+if [ "$1" != "update" ] && [ -x "$HOME/apps/qutebrowser/dist/.venv/bin/python3" ]; then
+ # See http://qutebrowser.org/doc/install.html#tox
+ #export LD_LIBRARY_PATH=/usr/lib/openssl-1.0
+ #export LD_LIBRARY_PATH=/usr/lib/`arch`-linux-gnu/openssl-1.0.2
+ OPTS="--qt-flag disable-reading-from-canvas"
+ source `dirname $0`/lib/qutebrowser-exec
+ $HOME/apps/qutebrowser/dist/.venv/bin/python3 -m qutebrowser $OPTS "$@"
+else
+ # Go to project folder
+ cd `dirname $0`
+
+ # Grab quebrowser source
+ git submodule update --init
+
+ # Check for tox
+ #if ! which tox &> /dev/null; then
+ # sudo apt install -y tox
+ #fi
+
+ # Build qutebrowser
+ #cd dist &> /dev/null && tox -r -e mkvenv-pypi
+ cd dist &> /dev/null && python3 scripts/mkvenv.py
+
+ # Check for doc builder
+ if ! dpkg-query -W -f='${Status}' asciidoc | grep -q '^install ok'; then
+ sudo apt install -y --no-install-recommends asciidoc source-highlight
+ fi
+
+ # Build docs
+ python3 scripts/asciidoc2html.py
+
+ # Run this script again
+ if [ "$1" != "update" ]; then
+ $0 "$@"
+ fi
+fi