diff options
author | Alexander Verbovetsky <alik@ejik.org> | 2019-11-02 12:56:24 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-11-02 12:56:24 +0700 |
commit | fa1bafe69d6e3d4116c675a79c16e98cd099a4c6 (patch) | |
tree | d4f9e680c04935b7548fd4278adfa899c5d1f2ec /network | |
parent | edd3d508c2714a6ce9c2e5f7c6ded3aa735816e5 (diff) |
network/qutebrowser-tox: Added (keyboard-driven vim-like browser).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/qutebrowser-tox/README | 12 | ||||
-rw-r--r-- | network/qutebrowser-tox/README.SBo.Widevine | 20 | ||||
-rw-r--r-- | network/qutebrowser-tox/doinst.sh | 9 | ||||
-rw-r--r-- | network/qutebrowser-tox/qutebrowser-tox.SlackBuild | 153 | ||||
-rw-r--r-- | network/qutebrowser-tox/qutebrowser-tox.info | 36 | ||||
-rw-r--r-- | network/qutebrowser-tox/slack-desc | 19 | ||||
-rw-r--r-- | network/qutebrowser-tox/wrapper.qutebrowser | 3 |
7 files changed, 252 insertions, 0 deletions
diff --git a/network/qutebrowser-tox/README b/network/qutebrowser-tox/README new file mode 100644 index 000000000000..fd030b08fb5d --- /dev/null +++ b/network/qutebrowser-tox/README @@ -0,0 +1,12 @@ +Qutebrowser is a keyboard-focused browser with a minimal vim-like GUI. +It's based on Qt and PyQt5 and free software, licensed under the GPL. + +It was inspired by other browsers/addons like dwb and +Vimperator/Pentadactyl. + +This script runs tox to install all needed dependencies in a virtual +environment subfolder. This comes with an up-to-date Qt/PyQt including a +pre-compiled QtWebEngine binary, but has a couple of caveats: +* It only works on 64-bit x86 systems. +* It comes with a QtWebEngine compiled without proprietary codec support + (such as h.264). diff --git a/network/qutebrowser-tox/README.SBo.Widevine b/network/qutebrowser-tox/README.SBo.Widevine new file mode 100644 index 000000000000..e3d4f5573294 --- /dev/null +++ b/network/qutebrowser-tox/README.SBo.Widevine @@ -0,0 +1,20 @@ +Widevine DRM support requires libwidevinecdm.so plugin. Qutebrowser +searches for it in the following directories: + +/opt/google/chrome +/usr/lib/chromium +/usr/lib64/chromium +/usr/lib/chromium-browser + +libwidevinecdm.so can be download at +https://dl.google.com/widevine-cdm/X.X.X.X-linux-x64.zip +and manually put to one of the above directories. The version "X.X.X.X" +to download can be found at +https://dl.google.com/widevine-cdm/versions.txt + +libwidevinecdm.so provided by google-chrome from /extra, Alien Bob's +chromium-widevine-plugin, etc. can be used as well. + +To test the Widevine DRM support, go to +https://shaka-player-demo.appspot.com/demo/ +and play the Sintel video. diff --git a/network/qutebrowser-tox/doinst.sh b/network/qutebrowser-tox/doinst.sh new file mode 100644 index 000000000000..65c7e2eeb9aa --- /dev/null +++ b/network/qutebrowser-tox/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/network/qutebrowser-tox/qutebrowser-tox.SlackBuild b/network/qutebrowser-tox/qutebrowser-tox.SlackBuild new file mode 100644 index 000000000000..d811b4133aa5 --- /dev/null +++ b/network/qutebrowser-tox/qutebrowser-tox.SlackBuild @@ -0,0 +1,153 @@ +#!/bin/sh + +# Slackware build script for qutebrowser-tox + +# Copyright 2019, Alexander Verbovetsky, Moscow, Russia +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=qutebrowser-tox +VERSION=${VERSION:-1.8.1} +SSLVERSION=${SSLVERSION:-1.1.1d} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ "$ARCH" != "x86_64" ]; then + echo "Only x86_64 is supported." + exit 1 +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG/opt $OUTPUT +cd $PKG/opt +tar xvf $CWD/qutebrowser-$VERSION.tar.gz +mv qutebrowser-$VERSION qutebrowser +cd qutebrowser +sed -i "/\[testenv:mkvenv-pypi\]/ a \ +install_command = pip install --no-index --find-links $CWD/ {opts} {packages}"\ + tox.ini + +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +tox -e mkvenv-pypi + +find ./ -type f -name '*.pyc' -delete +find ./ -type d -name '__pycache__' -delete +find ./ -type f -exec sed -i -e "s|$PKG||" {} \; +sed -i "/\[testenv:mkvenv-pypi\]/ {n;d;}" tox.ini +find ./ -type f -exec sed -i -e \ + '1,2 s|^#!/usr/bin/env python.*$|#!/opt/qutebrowser/.venv/bin/python3|' {} \; +.venv/bin/python3 -m compileall scripts/__init__.py \ + scripts/setupcommon.py scripts/utils.py -fq +.venv/bin/python3 -m compileall .venv/lib -fq + +.venv/bin/python3 scripts/asciidoc2html.py +a2x -f manpage doc/qutebrowser.1.asciidoc +gzip -9 doc/qutebrowser.1 +mkdir -p $PKG/usr/man/man1 +mv doc/qutebrowser.1.gz $PKG/usr/man/man1 + +mkdir -p $PKG/usr/share/{metainfo,applications,icons/hicolor/scalable/apps,pixmaps,qutebrowser/pdf.js} +install -m 0644 misc/org.qutebrowser.qutebrowser.appdata.xml \ + $PKG/usr/share/metainfo/ +install -m 0644 misc/org.qutebrowser.qutebrowser.desktop \ + $PKG/usr/share/applications +for res in 16 24 32 48 64 96 128 256 512; do + mkdir -p $PKG/usr/share/icons/hicolor/${res}x${res}/apps/; + install -m 0644 "icons/qutebrowser-${res}x${res}.png" \ +"$PKG/usr/share/icons/hicolor/${res}x${res}/apps/qutebrowser.png" +done +install -m 0644 "icons/qutebrowser.svg" \ + $PKG/usr/share/icons/hicolor/scalable/apps/ +install -m 0644 "icons/qutebrowser.xpm" $PKG/usr/share/pixmaps/ + +cp -a misc/userscripts $PKG/usr/share/qutebrowser +cp -a scripts $PKG/usr/share/qutebrowser +rm -rf $PKG/usr/share/qutebrowser/scripts/{__pycache__,dev,testbrowser,__init__.py,asciidoc2html.py,setupcommon.py,link_pyqt.py} + +mkdir -p $PKG/usr/bin +install -m 0755 -o root -g root $CWD/wrapper.qutebrowser \ + $PKG/usr/bin/qutebrowser + +find ./ -type f -exec sed -i -e \ + 's|/usr/share/pdf.js|/usr/share/qutebrowser/pdf.js|' {} \; +cd $PKG/usr/share/qutebrowser/pdf.js +unzip $CWD/pdfjs-*-dist.zip +chown -R root:root $PKG/usr/share/qutebrowser/pdf.js +find ./ -type f -exec chmod 644 {} \; + +cd $TMP +rm -rf openssl-$SSLVERSION +tar xvf $CWD/openssl-$SSLVERSION.tar.gz +cd openssl-$SSLVERSION +./config \ + zlib \ + enable-camellia \ + enable-seed \ + enable-rfc3779 \ + enable-cms \ + enable-md2 \ + enable-rc5 \ + enable-ssl3 \ + enable-ssl3-method \ + no-weak-ssl-ciphers \ + no-mdc2 \ + no-ec2m \ + no-idea \ + no-sse2 \ + shared + +make + +mv libcrypto.so.1.1 libssl.so.1.1 $PKG/opt/qutebrowser +cd $PKG/opt/qutebrowser + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.asciidoc $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/qutebrowser-tox/qutebrowser-tox.info b/network/qutebrowser-tox/qutebrowser-tox.info new file mode 100644 index 000000000000..6db8bf37dd47 --- /dev/null +++ b/network/qutebrowser-tox/qutebrowser-tox.info @@ -0,0 +1,36 @@ +PRGNAM="qutebrowser-tox" +VERSION="1.8.1" +HOMEPAGE="https://qutebrowser.org" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://github.com/qutebrowser/qutebrowser/archive/v1.8.1/qutebrowser-1.8.1.tar.gz \ + https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl \ + https://files.pythonhosted.org/packages/98/7b/ff284bd8c80654e471b769062a9b43cc5d03e7a615048d96f4619df8d420/MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl \ + https://files.pythonhosted.org/packages/26/a8/5d28fb652c80f41c28e7a54fcb576339904246d3662dad9afcb414f78cce/PyQt5-5.12.3-5.12.5-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl \ + https://files.pythonhosted.org/packages/bf/63/d363b567237375235d270049fd6416c83949f470bb51539458966cd7a38c/PyQt5_sip-4.19.19-cp37-cp37m-manylinux1_x86_64.whl \ + https://files.pythonhosted.org/packages/00/1b/bb518696c3884f330dcb54e8cd3ca2e975082c6f35f1148f28d018c99248/PyQtWebEngine-5.12.1-5.12.5-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl \ + https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz \ + https://files.pythonhosted.org/packages/5c/73/1dfa428150e3ccb0fa3e68db406e5be48698f2a979ccbcec795f28f44048/Pygments-2.4.2-py2.py3-none-any.whl \ + https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl \ + https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl \ + https://files.pythonhosted.org/packages/6b/15/a9fb9010f58d1c55dd0b7779db2334feb9a572d407024f39a60f44293861/cssutils-1.0.2-py3-none-any.whl \ + https://files.pythonhosted.org/packages/f9/bd/10398e2c2d2070cc8a9c7153abfbd4ddb2895a2c52a32722ab8689e0cc7d/pyPEG2-2.15.2.tar.gz \ + https://github.com/mozilla/pdf.js/releases/download/v2.3.200/pdfjs-2.3.200-dist.zip \ + https://www.openssl.org/source/openssl-1.1.1d.tar.gz" +MD5SUM_x86_64="cb57d11fba16065c01af77dbffdb5137 \ + 93ca8152bf9ca03214158a49d542402f \ + ce9334cb93c3fb155b6395458935ad61 \ + f66e5c5b6fac3df369927f8959f73043 \ + f4bf07b7c67a96a33e2323b644e523de \ + cf20138f750278175dce6353d650c5f4 \ + 20f87ab421b0271dbf371dc5c1cddb5c \ + ea723daf498a9805b481619c19ab75f8 \ + 853dff18dd0f6cf4e9abc357e9df6e17 \ + d7c988b7a52ec3eb418a99b1128bca07 \ + e5e872b22e870f6834d49c1fb2d8a9fb \ + 84057d292808553290f0b78f42c64bbe \ + 3d493360f527da454d42c90a7f559041 \ + 3be209000dbc7e1b95bcdf47980a3baa" +REQUIRES=" python3 tox" +MAINTAINER="Alexander Verbovetsky" +EMAIL="alik@ejik.org" diff --git a/network/qutebrowser-tox/slack-desc b/network/qutebrowser-tox/slack-desc new file mode 100644 index 000000000000..b75e1e017209 --- /dev/null +++ b/network/qutebrowser-tox/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +qutebrowser-tox: qutebrowser-tox (PyQt5 keyboard-driven vim-like browser) +qutebrowser-tox: +qutebrowser-tox: Qutebrowser is a keyboard-focused browser with a minimal vim-like GUI. +qutebrowser-tox: It's based on Qt and PyQt5 and free software, licensed under the GPL. +qutebrowser-tox: +qutebrowser-tox: It was inspired by other browsers/addons like dwb and +qutebrowser-tox: Vimperator/Pentadactyl. +qutebrowser-tox: +qutebrowser-tox: This script installs all needed dependencies in a .venv subfolder. +qutebrowser-tox: +qutebrowser-tox: Homepage: https://www.qutebrowser.org diff --git a/network/qutebrowser-tox/wrapper.qutebrowser b/network/qutebrowser-tox/wrapper.qutebrowser new file mode 100644 index 000000000000..5561a4ac750a --- /dev/null +++ b/network/qutebrowser-tox/wrapper.qutebrowser @@ -0,0 +1,3 @@ +#!/bin/sh +LD_LIBRARY_PATH="/opt/qutebrowser" \ +setsid /opt/qutebrowser/.venv/bin/python3 -m qutebrowser "$@" |