# Template file for 'nheko'
pkgname=nheko
version=0.11.3
revision=1
build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake pkg-config qt5-declarative asciidoc"
makedepends="qt5-multimedia-devel qt5-svg-devel qt5-tools-devel fmt-devel
 spdlog mtxclient-devel cmark-devel olm-devel json-c++ lmdb++ coeurl-devel
 qt5-declarative-devel qt5-quickcontrols2-devel qtkeychain-qt5-devel
 gst-plugins-bad1-devel gst-plugins-base1-devel xcb-util-wm-devel re2-devel"
depends="hicolor-icon-theme qt5-quickcontrols2 qt5-graphicaleffects
 qt5-multimedia gst-plugins-good1 gst-plugins-good1-qt5"
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=f285156884a3a0c6870f3fba89c13d1fd70c8727bd179d8310b13819f8a63a37

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