# Template file for 'libsignal-protocol-c'
pkgname=libsignal-protocol-c
version=2.3.3
revision=2
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
checkdepends="openssl-devel pkg-config check-devel"
short_desc="Signal Protocol C Library"
maintainer="teldra <teldra@rotce.de>"
license="GPL-3.0-or-later"
homepage="https://www.whispersystems.org/"
distfiles="https://github.com/signalapp/libsignal-protocol-c/archive/v${version}.tar.gz"
checksum=c22e7690546e24d46210ca92dd808f17c3102e1344cd2f9a370136a96d22319d

if [ "${XBPS_CHECK_PKGS}" ]; then
	configure_args+=" -DBUILD_TESTING=1"
fi

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