# Template file for 'dooble'
pkgname=dooble
version=2026.08.21
revision=1
archs="x86_64* aarch64*"
build_style=qmake
configure_args="dooble.pro"
hostmakedepends="qt6-base qt6-webengine
 qt6-plugin-tls-qcertonly qt6-plugin-tls-openssl"
makedepends="qt6-charts-private-devel qt6-webengine-devel qt6-webchannel-devel
 qt6-location-devel gpgme-devel"
depends="qt6-plugin-sqlite hunspell-qtwebengine-dict"
short_desc="Dooble, the scientific browser. Minimal, cute, and unusually stable"
maintainer="Eloi Torrents <eloitor@duck.com>"
license="BSD-3-Clause"
homepage="https://textbrowser.github.io/dooble/"
distfiles="https://github.com/textbrowser/dooble/archive/refs/tags/${version}.tar.gz"
checksum=0c35db368b252775ecd885597234b8a632523db23b0b474ac18d3e51a4623f68

post_patch() {
	vsed -i -e 's/Wzero-as-null-pointer-constant/Wno-zero-as-null-pointer-constant/' \
		-e '/-Werror/d' \
		dooble.pro
}

do_install() {
	vbin Dooble dooble
	vinstall ${FILESDIR}/dooble.sh 755 etc/profile.d
	vinstall Distributions/dooble.desktop 644 usr/share/applications
	vinstall Icons/Logo/dooble.png 644 usr/share/pixmaps
	vmkdir usr/share/dooble/translations
	vcopy "Translations/dooble_*.qm" usr/share/dooble/translations
	vlicense LICENSE
}
