void-packages/srcpkgs/qutebrowser/template
Andrew J. Hesford 9deb94f8b6 qutebrowser: disable webengine for cross builds
python3-PyQt5-webengine is nocross because its configure script is
broken for anything but native builds. Better to have a current
qutebrowser that uses -webkit than a stale package with old -webengine.
2020-07-13 16:17:50 -04:00

59 lines
1.9 KiB
Bash

# Template file for 'qutebrowser'
# not noarch as the package might be built with different backend for each arch
pkgname=qutebrowser
version=1.13.0
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools asciidoc"
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="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
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=d3e930ad6705fecf707d221ac253b60352d8cac91cc2ed88d68169cd2a5000f7
nostrip=yes
build_options="webengine"
desc_option_webengine="Build Qt5 WebEngine support"
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
# qt5-webengine is only available for little-endian systems
if [ -z "$CROSS_BUILD" ]; then
# qt5-webengine can only be built when target and host bitness match
# python3-PyQt5-webengine is currently nocross
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
}
post_install() {
vman doc/qutebrowser.1
vinstall misc/org.qutebrowser.qutebrowser.desktop 644 usr/share/applications
vmkdir usr/share/qutebrowser
vcopy misc/userscripts usr/share/qutebrowser
vcopy scripts usr/share/qutebrowser
local dim
for dim in 16 24 32 48 64 96 128 256 512; do
vinstall icons/qutebrowser-${dim}x${dim}.png 644 \
usr/share/icons/hicolor/${dim}x${dim}/apps qutebrowser.png
done
vinstall icons/qutebrowser.svg 644 \
usr/share/icons/hicolor/scalable/apps qutebrowser.svg
}