l_template_changes.patch 1.2 KB

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