From 985434980ffcd0005ac0910d3b9250306958d6ca Mon Sep 17 00:00:00 2001 From: TBK Date: Mon, 20 May 2019 01:48:11 +0200 Subject: testing/faudio: new aport --- testing/faudio/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 testing/faudio/APKBUILD (limited to 'testing/faudio') diff --git a/testing/faudio/APKBUILD b/testing/faudio/APKBUILD new file mode 100644 index 00000000000..41879768a2f --- /dev/null +++ b/testing/faudio/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: TBK +# Maintainer: TBK +pkgname=faudio +pkgver=19.05 +pkgrel=0 +pkgdesc="Accuracy-focused XAudio reimplementation for open platforms" +url="https://fna-xna.github.io/" +arch="all" +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="d64d53f0bfdd3f2b65c0fe872bb64a7e0e7f07d7690a644a6e514fa88d3e46de14ca2ae3bbc3460e1c817ac67f8a69855aad3232c062a5adcd6266ae8c2659af faudio-19.05.tar.gz" -- cgit v1.2.3