# Contributor: TBK # Maintainer: TBK pkgname=faudio pkgver=23.08 pkgrel=0 pkgdesc="Accuracy-focused XAudio reimplementation for open platforms" url="https://fna-xna.github.io/" arch="all" license="Zlib" makedepends="cmake samurai sdl2-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/FNA-XNA/FAudio/archive/$pkgver.tar.gz" builddir="$srcdir/FAudio-$pkgver" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -G Ninja -B build \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=1 \ -DBUILD_TESTS=1 cmake --build build } check() { cd build ./faudio_tests } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 2e694c1024c34cc5b8aad0a463f7ca3f9a7f7fdac736529c4d0feaa937cca838d084613fab50204bee1b0498e3b8ef2dfe525c66cde421796987430902efafcc faudio-23.08.tar.gz "