# Template file for 'nheko'
pkgname=nheko
version=0.12.0
revision=2
build_style=cmake
hostmakedepends="qt6-base qt6-tools qt6-declarative-host-tools pkg-config asciidoc"
makedepends="qt6-multimedia-devel qt6-svg-devel qt6-declarative-private-devel fmt-devel
 spdlog mtxclient-devel cmark-devel olm-devel json-c++ lmdb++ coeurl-devel
 qtkeychain-qt6-devel gst-plugins-bad1-devel gst-plugins-base1-devel
 xcb-util-wm-devel re2-devel KDSingleApplication qt6-base-private-devel"
depends="hicolor-icon-theme gst-plugins-good1"
short_desc="Desktop client for Matrix using Qt and C++"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://nheko-reborn.github.io"
changelog="https://raw.githubusercontent.com/Nheko-Reborn/nheko/master/CHANGELOG.md"
distfiles="https://github.com/Nheko-Reborn/nheko/archive/v${version}.tar.gz"
checksum=a3a7578bd9386a0b9a4188fa1296fdddb7df0f846c39728b80a998f9d06f36d1

case "$XBPS_TARGET_MACHINE" in
	armv*-musl)
		makedepends+=" libunwind-devel"
		configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-lunwind" ;;
	*) ;;
esac
