template 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Template file for 'qutebrowser'
  2. pkgname=qutebrowser
  3. version=1.14.0
  4. revision=1
  5. build_style=python3-module
  6. hostmakedepends="python3-setuptools asciidoc"
  7. depends="python3-PyQt5-quick python3-Jinja2 python3-Pygments python3-pyPEG2
  8. python3-yaml python3-attrs python3-PyQt5-opengl python3-PyQt5-sql
  9. qt5-plugin-sqlite python3-PyQt5-webkit"
  10. short_desc="Keyboard-focused browser with a minimal GUI"
  11. maintainer="Érico Nogueira <ericonr@disroot.org>"
  12. license="GPL-3.0-or-later"
  13. homepage="https://qutebrowser.org/"
  14. changelog="https://raw.githubusercontent.com/qutebrowser/qutebrowser/master/doc/changelog.asciidoc"
  15. distfiles="https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/qutebrowser-${version}.tar.gz"
  16. checksum=76eb14097bab873ffae73bb4d017b4d22aa5c4604d45f0b9570dfaed4720374a
  17. nostrip=yes
  18. # Liberation: Removed webengine related code
  19. # Liberation
  20. # Some code has been taken and modified from:
  21. # https://git.parabola.nu/abslibre.git/tree/libre/qutebrowser/PKGBUILD
  22. post_patch() {
  23. # Show warning related to webkit being old and it may contain vulnerabilities
  24. cp "$FILESDIR"/warning-webkit.html qutebrowser/html/
  25. # make sure webkit is the default backend
  26. sed -i 's/webengine/webkit/' qutebrowser/config/configdata.yml
  27. }
  28. pre_build() {
  29. a2x -f manpage doc/qutebrowser.1.asciidoc
  30. }
  31. post_install() {
  32. vman doc/qutebrowser.1
  33. vinstall misc/org.qutebrowser.qutebrowser.desktop 644 usr/share/applications
  34. vmkdir usr/share/qutebrowser
  35. vcopy misc/userscripts usr/share/qutebrowser
  36. vcopy scripts usr/share/qutebrowser
  37. local dim
  38. for dim in 16 24 32 48 64 96 128 256 512; do
  39. vinstall icons/qutebrowser-${dim}x${dim}.png 644 \
  40. usr/share/icons/hicolor/${dim}x${dim}/apps qutebrowser.png
  41. done
  42. vinstall icons/qutebrowser.svg 644 \
  43. usr/share/icons/hicolor/scalable/apps qutebrowser.svg
  44. }