# Template file for 'olm'
pkgname=olm
version=3.2.16
revision=1
build_style=cmake
short_desc="Implementation of the Double Ratchet cryptographic ratchet"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://gitlab.matrix.org/matrix-org/olm"
changelog="https://gitlab.matrix.org/matrix-org/olm/-/raw/master/CHANGELOG.rst"
distfiles="https://gitlab.matrix.org/matrix-org/olm/-/archive/${version}/olm-${version}.tar.bz2"
checksum=327cfcb81ef0c42f4b1d5c24b25d56932b57d64ccd9f00ed919a893a43333411

do_check() {
	cd build/tests
	ctest
}

olm-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
