qutebrowser: make webengine an option (chooses default backend dep)

This commit is contained in:
q66 2020-01-21 00:03:53 +01:00
parent 1f3d166869
commit dccdc9a0d4
1 changed files with 20 additions and 4 deletions

View File

@ -1,13 +1,13 @@
# Template file for 'qutebrowser'
# not noarch as the package might be built with different backend for each arch
pkgname=qutebrowser
version=1.9.0
revision=1
archs=noarch
revision=2
build_style=python3-module
pycompile_module="qutebrowser"
hostmakedepends="python3-setuptools asciidoc"
depends="python3-PyQt5-webengine python3-PyQt5-quick python3-Jinja2 python3-Pygments
python3-pyPEG2 python3-yaml python3-attrs python3-PyQt5-opengl python3-PyQt5-sql
depends="python3-PyQt5-quick python3-Jinja2 python3-Pygments python3-pyPEG2
python3-yaml python3-attrs python3-PyQt5-opengl python3-PyQt5-sql
qt5-plugin-sqlite"
short_desc="Keyboard-focused browser with a minimal GUI"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
@ -16,6 +16,22 @@ homepage="https://qutebrowser.org/"
changelog="https://raw.githubusercontent.com/qutebrowser/qutebrowser/master/doc/changelog.asciidoc"
distfiles="https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/qutebrowser-${version}.tar.gz"
checksum=2748fef2d0360000f6f814dae99ad8ad08b040cb4cf0e1e6d1e199ec70c01ef8
nostrip=yes
build_options="webengine"
desc_option_webengine="Build Qt5 WebEngine support"
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
if [ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
build_options_default="webengine"
fi
fi
if [ "$build_option_webengine" ]; then
depends+=" python3-PyQt5-webengine"
else
depends+=" python3-PyQt5-webkit"
fi
pre_build() {
a2x -f manpage doc/qutebrowser.1.asciidoc