# Template file for 'libQuotient'
pkgname=libQuotient
version=0.9.5
revision=2
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=1 -DQuotient_INSTALL_TESTS=0"
hostmakedepends="qt6-base qt6-tools"
makedepends="qt6-multimedia-devel qtkeychain-qt6-devel
 olm-devel openssl-devel qt6-plugin-mysql qt6-plugin-odbc
 qt6-plugin-pgsql qt6-plugin-sqlite qt6-base-private-devel"
short_desc="Qt6 library to write cross-platform clients for Matrix"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://matrix.org/docs/projects/sdk/quotient"
distfiles="https://github.com/quotient-im/libQuotient/archive/${version}.tar.gz"
checksum=24366dd59aca7b991756e45c3c8823c43fc6a8fdb161ea6dcce5b666c6300766

libQuotient-devel_package() {
	depends="${sourcepkg}>=${version}_${revision} qtkeychain-qt6-devel
	 qt6-base-devel olm-devel openssl-devel qt6-plugin-mysql
	 qt6-plugin-odbc qt6-plugin-pgsql qt6-plugin-sqlite"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/lib/cmake
		vmove "usr/lib/*.so"
	}
}
