# Template file for 'bctoolbox'
pkgname=bctoolbox
version=5.3.106
revision=1
build_style=cmake
configure_args="-DENABLE_TESTS=ON -DENABLE_TESTS_COMPONENT=FALSE
 -DENABLE_STRICT=FALSE -DCMAKE_MODULE_PATH=/usr/lib/cmake
 -DBUILD_SHARED_LIBS=ON"
makedepends="bcunit-devel mbedtls-devel"
short_desc="Library to create and run audio and video streams"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-only"
homepage="https://gitlab.linphone.org/BC/public/bctoolbox"
distfiles="https://gitlab.linphone.org/BC/public/bctoolbox/-/archive/${version}/bctoolbox-${version}.tar.gz"
checksum=d5cbef92dd5089260d60e4064e0068693e0d71908818c2f50ed7319de9c8f988

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