void-packages/srcpkgs/libQuotient/template

32 lines
1.0 KiB
Bash

# Template file for 'libQuotient'
pkgname=libQuotient
version=0.8.1.2
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=1 -DQuotient_INSTALL_TESTS=0
$(vopt_bool e2ee Quotient_ENABLE_E2EE)"
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-devel qt5-multimedia-devel qtkeychain-qt5-devel
$(vopt_if e2ee 'olm-devel openssl-devel qt5-plugin-mysql qt5-plugin-odbc
qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds')"
short_desc="Qt5 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=5e5539fe9616c9f63985b0aabfab1858f1626e3d71a14709eeedd85af0471c7c
build_options="e2ee"
build_options_default="e2ee"
libQuotient-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}