# Template file for 'neochat'
pkgname=neochat
version=24.12.1
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake
 -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules gettext pkg-config qt6-base qt6-tools
 kf6-kcoreaddons kf6-kconfig python3 kf6-kdoctools qt6-declarative-host-tools"
makedepends="kquickimageeditor-devel libQuotient-devel qtkeychain-qt6-devel
 qt6-multimedia-devel kf6-kirigami-devel kf6-ki18n-devel cmark-devel
 kf6-knotifications-devel kf6-kconfig-devel kf6-kcoreaddons-devel
 kf6-kstatusnotifieritem-devel kf6-qqc2-desktop-style-devel kf6-sonnet-devel
 kf6-kitemmodels-devel kf6-kconfigwidgets-devel kf6-kio-devel
 kirigami-addons-devel qcoro-qt6-devel olm-devel qt6-plugin-sqlite
 kf6-purpose-devel kf6-syntax-highlighting-devel
 $(vopt_if webview qt6-webview-devel)"
depends="kquickimageeditor kf6-kquickcharts qt6-location"
short_desc="Client for matrix from KDE"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only, GPL-3.0-or-later, GPL-2.0-or-later, BSD-2-Clause"
homepage="https://apps.kde.org/en/neochat"
distfiles="${KDE_SITE}/release-service/${version}/src/neochat-${version}.tar.xz"
checksum=381cb65eff65d58854ddbb7de77a56a6d9bf94ec55ccc73eb31d0d12976f4497

build_options="webview"
desc_option_webview="Use Qt6 WebView"

if [ "$XBPS_TARGET_ENDIAN" = "le" ] &&
	[ "64" = "$XBPS_WORDSIZE" ] &&
	[ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then
	build_options_default="webview"
fi

post_install() {
	vlicense LICENSES/BSD-2-Clause.txt
}
