void-packages/srcpkgs/libdatachannel/template

24 lines
776 B
Bash

# Template file for 'libdatachannel'
pkgname=libdatachannel
version=0.20.2
revision=1
build_style=cmake
configure_args="-DPREFER_SYSTEM_LIB=ON -DUSE_NICE=ON -DNO_EXAMPLES=ON"
makedepends="plog openssl-devel libnice-devel libsrtp-devel usrsctp"
short_desc="C/C++ WebRTC network library"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="MPL-2.0"
homepage="https://libdatachannel.org/"
distfiles="https://github.com/paullouisageneau/libdatachannel/archive/refs/tags/v$version.tar.gz"
checksum=8a119064296e8c354f82b6c865306c088ccce0d9863b7cc038927bf10981304e
libdatachannel-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}