# Contributor: TBK # Maintainer: TBK pkgname=faudio pkgver=19.06 pkgrel=0 pkgdesc="Accuracy-focused XAudio reimplementation for open platforms" url="https://fna-xna.github.io/" arch="all !ppc64le" license="Zlib" makedepends="cmake ffmpeg-dev 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() { mkdir build && cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_INCLUDEDIR=include/FAudio \ -DFFMPEG=ON \ -DBUILD_TESTS=1 make } check() { cd "$builddir/build" ./faudio_tests } package() { cd "$builddir/build" make DESTDIR="$pkgdir" install } sha512sums="ba3ee18b47d8d85dc39e777c420522349f9873cf1528dd6c266f7254fe27cdb5bb6ab5bcbeab870938b509bfd006590d2380908b7d1e3fd679d2a434ce82eca6 faudio-19.06.tar.gz"