# Template file for 'libilbc'
pkgname=libilbc
version=3.0.4
revision=1
build_style=cmake
short_desc="Packaged version of iLBC codec from the WebRTC project"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/TimothyGu/libilbc"
distfiles="https://github.com/TimothyGu/libilbc/releases/download/v${version}/libilbc-${version}.tar.zst"
checksum=70a37660e59f999dbde8fd10fb0fb375baf8dd02093ab4b32f94bc4abaac4358

post_install() {
	vlicense COPYING
	rm -rf ${DESTDIR}/usr/share/doc
}

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