From dccdc9a0d454d6788515c4ddf123e8ef73be2881 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 21 Jan 2020 00:03:53 +0100 Subject: [PATCH] qutebrowser: make webengine an option (chooses default backend dep) --- srcpkgs/qutebrowser/template | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/srcpkgs/qutebrowser/template b/srcpkgs/qutebrowser/template index 5d4a756d1c3..083181e3520 100644 --- a/srcpkgs/qutebrowser/template +++ b/srcpkgs/qutebrowser/template @@ -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 " @@ -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