diff options
Diffstat (limited to 'community/faudio/APKBUILD')
-rw-r--r-- | community/faudio/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/faudio/APKBUILD b/community/faudio/APKBUILD new file mode 100644 index 00000000000..6b197c4e5bf --- /dev/null +++ b/community/faudio/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: TBK <alpine@jjtc.eu> +# Maintainer: TBK <alpine@jjtc.eu> +pkgname=faudio +pkgver=21.01 +pkgrel=0 +pkgdesc="Accuracy-focused XAudio reimplementation for open platforms" +url="https://fna-xna.github.io/" +arch="all !mips !mips64" +license="Zlib" +makedepends="cmake 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 -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=1 \ + -DBUILD_TESTS=1 + make -C build +} + +check() { + cd build + ./faudio_tests +} + +package() { + make -C build DESTDIR="$pkgdir" install +} + +sha512sums="69405a28fdf3ff5026992bdd1d40d61653b834dac3ef2697a0e794deac2fa6257fe74b19d2fe225ce25a1ae3caec7082106f5ab6ea6109cc61e520b903d35b80 faudio-21.01.tar.gz" |