# Template file for 'FAudio'
pkgname=FAudio
version=26.05
revision=1
build_style=cmake
configure_args="-DSDL3_INCLUDE_DIRS=${XBPS_CROSS_BASE}/usr/include/SDL3
 -DSDL3_LIBRARIES=${XBPS_CROSS_BASE}/usr/lib/libSDL3.so"
hostmakedepends="pkg-config"
makedepends="SDL3-devel"
short_desc="Accuracy-focused XAudio reimplementation for open platforms"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Zlib"
homepage="https://github.com/FNA-XNA/FAudio"
distfiles="https://github.com/FNA-XNA/FAudio/archive/${version}.tar.gz"
checksum=09390c33c8eac6487b10c6d3fa3ea26591ccdb0d57a2a4d465e0273bef028576

post_install() {
	vlicense LICENSE
}

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