123456789101112131415161718192021222324252627282930313233343536 |
- --- template.orig 2020-11-08 13:32:53.726982000 +0600
- +++ template 2020-11-11 22:04:47.086411000 +0600
- @@ -8,3 +8,3 @@ depends="python3-PyQt5-quick python3-Jin
- python3-yaml python3-attrs python3-PyQt5-opengl python3-PyQt5-sql
- - qt5-plugin-sqlite"
- + qt5-plugin-sqlite python3-PyQt5-webkit"
- short_desc="Keyboard-focused browser with a minimal GUI"
- @@ -18,17 +18,14 @@ nostrip=yes
-
- -build_options="webengine"
- -desc_option_webengine="Build Qt5 WebEngine support"
- +# Liberation: Removed webengine related code
-
- -if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
- - # qt5-webengine is only available for little-endian systems
- - if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
- - build_options_default="webengine"
- - fi
- -fi
- +# Liberation
- +# Some code has been taken and modified from:
- +# https://git.parabola.nu/abslibre.git/tree/libre/qutebrowser/PKGBUILD
- +post_patch() {
- + # Show warning related to webkit being old and it may contain vulnerabilities
- + cp "$FILESDIR"/warning-webkit.html qutebrowser/html/
-
- -if [ "$build_option_webengine" ]; then
- - depends+=" python3-PyQt5-webengine"
- -else
- - depends+=" python3-PyQt5-webkit"
- -fi
- + # make sure webkit is the default backend
- + sed -i 's/webengine/webkit/' qutebrowser/config/configdata.yml
- +}
-
|